react-clear-cache icon indicating copy to clipboard operation
react-clear-cache copied to clipboard

Bump react peer dependency

Open maluramichael opened this issue 3 years ago • 8 comments

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

maluramichael avatar May 12 '22 07:05 maluramichael

Encountered this while updating Node version in an old project, I'd also like to see this!

gabriel-bishop avatar May 23 '22 15:05 gabriel-bishop

I'm having the same issue!

niltonxp2 avatar May 31 '22 21:05 niltonxp2

Anybody tried to force the install ?

ericowhadi avatar Jun 03 '22 23:06 ericowhadi

Anybody tried to force the install?

Well, for now, I'm using --legacy-peer-deps

niltonxp2 avatar Jun 05 '22 15:06 niltonxp2

Try https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides Worked wonders for me.

maluramichael avatar Jun 06 '22 09:06 maluramichael

which version did you choose? @maluramichael

francowanseele avatar Jun 21 '22 18:06 francowanseele

@francowanseele

"overrides": {
    "react-clear-cache": {
        "react": ">=15.0.0",
        "react-dom": ">=15.0.0"
    }
},

maluramichael avatar Jun 21 '22 18:06 maluramichael

@maluramichael thank you so much! It worked 🥇 🦾

francowanseele avatar Jun 21 '22 19:06 francowanseele