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.

Allow React 18 as peerDependency

See original GitHub issue

React 18 is backward compatible, please, allow React version ^18.0 as peerDependency in package.json https://reactjs.org/blog/2022/03/29/react-v18.html

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
theniceboycommented, Apr 20, 2022

https://github.com/maslianok/react-resize-detector/blob/353457dacdd132073276d597c83d12341a6cdeaf/README.md?plain=1#L1

Support React 18 like it’s 2022! 😄

Btw thank you for this package! This is awesome!

3reactions
michaelbullcommented, Apr 30, 2022

React 18 is backward compatible

It isn’t. Issue #208 highlights a major regression that needs addressing first, the solution for which is in PR #209.

It won’t work out-of-the-box in React 18 until this is addressed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React 18 is not supported as a peer dependency #5205 - GitHub
Possible solution. Update "peerDependencies" in package.json to support React 18.
Read more >
npm ERR! Conflicting peer dependency: react@18.0.0
I have the same issue as yours. To fix the error. Open cli then type: open /Users/Name/.npm then delete folders _cacache, _logs, _npx....
Read more >
Add React 18 as a peer dependency - Morioh
The purpose of the NAT Gateway is to allow only the outbound connections from your private subnet to the internet. No one can...
Read more >
Addressing the shortcomings of peer dependencies - HackMD
They also give no way for producers to indicate common intent. They put singleton package expectations in the ... Should react be a...
Read more >
React Leaflet Search Peer Dependency Issue Inquiry
0.1 npm package library with React v18? I've tried running…npm install react-leaflet-search --legacy-peer-deps as listed on stack overflow ( ...
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