I'm Getting This Error While Installing The React-Reveal And I'm Unable To Understand How To Solve It
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.3.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-reveal
npm ERR! react-reveal@"*" 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\Aditya Kirad\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\Aditya Kirad\AppData\Local\npm-cache\_logs\2022-05-17T05_30_28_333Z-debug-0.log```
React-Reveal is basically deprecated at this point. It did not get any updates for years. In its package.json it declares a dependency to react 15 - 16, you are using react 18 and node >= 16.
you can run npm i --legacy-peer-deps (as it tells you ;-) ) to have npm somewhat ignore this error, but it MIGHT lead to issues.
Try force install.
npm i react-reveal -f
Try force install.
npm i react-reveal -f
thank you, that's work
try force install it really works npm i react-reveal -f
this works for the development environment, but what if we want to deploy the application? react-reveal is not compatible with react 18.2.0. so the terminal in my deployment platform is throwing an error while installing npm packages. What must I do?
this works for the development environment, but what if we want to deploy the application? react-reveal is not compatible with react 18.2.0. so the terminal in my deployment platform is throwing an error while installing npm packages. What must I do?
yes i am facing the same problem.
try force install it really works npm i react-reveal -f
Not sure, but what if it broke other packages ?
try force install it really works npm i react-reveal -f
Not sure, but what if it broke other packages ?
well I have moved on to better animation libraries which works with react 18 but thank all of guys for you support
it having trouble pushing my react app to production because of react-reveal deprecation. What do I do
it having trouble pushing my react app to production because of react-reveal deprecation. What do I do
It is best to move to new library. For my project , I use react-awesome-reveal. It is not as feature rich as react-reveal, but it gets the work done. No problem
Tente utilizar react-awesome-reveal ao invés react-reveal.
https://www.npmjs.com/package/react-awesome-reveal#installation