Bump react peer dependency
Is it possible to bump the version from react 15.0.0 and 16.0.0 to 17.0.0 and 18.0.0?
Right now i get this error when i try to install the latest version of react-clear-cache.
$ npm install develop * ] 9:05 am
npm ERR! code ERESOLVE
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@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-clear-cache
npm ERR! react-clear-cache@"^1.4.12" 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 /Users/michael/.npm/eresolve-report.txt for a full report.```
Encountered this while updating Node version in an old project, I'd also like to see this!
I'm having the same issue!
Anybody tried to force the install ?
Anybody tried to force the install?
Well, for now, I'm using --legacy-peer-deps
Try https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides Worked wonders for me.
which version did you choose? @maluramichael
@francowanseele
"overrides": {
"react-clear-cache": {
"react": ">=15.0.0",
"react-dom": ">=15.0.0"
}
},
@maluramichael thank you so much! It worked 🥇 🦾