question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bump react and react-dom peerDependencies version

See original GitHub issue

🐛 Bug report

Current Behavior

Peer dependency warnings are generated when installing reach-ui libs using React 17:

warning @reach/portal@0.11.2" has incorrect peer dependency "react@^16.8.0".
warning @reach/portal@0.11.2" has incorrect peer dependency "react-dom@^16.8.0".
warning @reach/tooltip@0.11.2" has incorrect peer dependency "react@^16.8.0".
warning @reach/tooltip@0.11.2" has incorrect peer dependency "react-dom@^16.8.0".

Expected behavior

No warnings.

Suggested solution(s)

Change peer dependencies to “react@^16.8.0 || react@^17.0.0”

Your environment

Software Name(s) Version
Reach Package many (all?) latest
React 17.0.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
karlhorkycommented, Jan 3, 2021

@felixmosh Ok, then opened #718 for this, thanks!

0reactions
felixmoshcommented, Jan 3, 2021

All reach-ui components are compatible to ^16.8 therefore compatible to 17.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm Peer Dependencies - Fathom
Prior to version 4, npm automatically included peer dependencies if they weren't explicitly included. That behaviour led to too much complexity in dependency ......
Read more >
The complete guide to publishing a React package to npm
So you want to publish a React component as a package to npm? This guide has all the information you need, even if...
Read more >
react-bootstrap-slider - npm
Updated dependencies to latest versions. Version 1.1.2: 24 Sep 2016. Reverted change of slider trigger event from change to slideStop in v1.1.1.
Read more >
Add to the addon catalog - Storybook Tutorials
And all peer-dependencies of the addon. For example, react, react-dom and all Storybook related APIs. Copy. package.json. { ... "main": "dist/preset.js", ...
Read more >
FAQs - styled-components
npm install styled-components@^5.0.0 react@^16.8 react-dom@^16.8 react-is@^16.8 ... Also, note that in the peerDependencies section the version string has ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found