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

I'm Getting This Error While Installing The React-Reveal And I'm Unable To Understand How To Solve It

Open AdityaKirad opened this issue 3 years ago • 2 comments

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```

AdityaKirad avatar May 17 '22 05:05 AdityaKirad

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.

LucaNerlich avatar May 21 '22 12:05 LucaNerlich

Try force install.

npm i react-reveal -f

Safnaj avatar Jun 05 '22 06:06 Safnaj

Try force install.

npm i react-reveal -f

thank you, that's work

Rafidimas17 avatar Dec 02 '22 01:12 Rafidimas17

try force install it really works npm i react-reveal -f

PremShinde-2013 avatar Apr 18 '23 01:04 PremShinde-2013

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?

Nithin-Kamineni avatar May 01 '23 01:05 Nithin-Kamineni

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.

HammadAhmed30 avatar May 04 '23 18:05 HammadAhmed30

try force install it really works npm i react-reveal -f

Not sure, but what if it broke other packages ?

SiddharthaMishra-dev avatar Sep 23 '23 08:09 SiddharthaMishra-dev

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

AdityaKirad avatar Sep 24 '23 05:09 AdityaKirad

it having trouble pushing my react app to production because of react-reveal deprecation. What do I do

malachi43 avatar Oct 13 '23 18:10 malachi43

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

SiddharthaMishra-dev avatar Oct 13 '23 19:10 SiddharthaMishra-dev

Tente utilizar react-awesome-reveal ao invés react-reveal.

https://www.npmjs.com/package/react-awesome-reveal#installation

Jonaathan-Santos avatar Dec 22 '23 05:12 Jonaathan-Santos