react-snowfall icon indicating copy to clipboard operation
react-snowfall copied to clipboard

Unable to install in React 19 project

Open KMatuszak opened this issue 1 year ago • 3 comments

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error   react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8 || 17.x || 18.x" from [email protected]
npm error node_modules/react-snowfall
npm error   react-snowfall@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

KMatuszak avatar Dec 06 '24 16:12 KMatuszak

Tested it on one of my own projects. It works as intended on react-19 so I've put forward a PR #82 to update peerDependencies.

Dunkstormen avatar Dec 15 '24 01:12 Dunkstormen

Would love to get the linked pr out 🎈

k-lofnes avatar Dec 19 '24 08:12 k-lofnes

I have also tested it in my project with react 19. It is working but needs --legacy-peer-deps or --force for npm installation. if anyone can fix this small issue it would be great

Far-1d avatar Jan 19 '25 11:01 Far-1d