wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.15k stars 108 forks source link

installation error dependecy conflict #166

Closed s-e1 closed 2 years ago

s-e1 commented 3 years ago

I tried installing the package. This was the error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree 
npm ERR! 
npm ERR! While resolving: face-detector-heroku@0.1.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project    
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from react-particles-js@3.4.1
npm ERR! node_modules/react-particles-js
npm ERR!   react-particles-js@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\USER\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Local\npm-cache\_logs\2021-02-05T12_44_00_825Z-debug.log
alacwong commented 3 years ago

Try downgrading your react version, don't think it works with react 17

BryantIT commented 3 years ago

I also have this issue. I'm using React Version 17 but was wondering if there was a way around this without downgraded the whole library.

RaeganTysh commented 3 years ago

I used react-tsparticles and it worked with react v 17.0.1 - this way I was able to avoid downgrading.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.