react-custom-scrollbars-2 icon indicating copy to clipboard operation
react-custom-scrollbars-2 copied to clipboard

Can not install with react 18

Open MohammadxAli opened this issue 2 years ago • 11 comments

Hi, trying to install this package using npm but it seems like it has conflicts with react 18, here are the logs:

$ npm install react-custom-scrollbars-2 --save
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@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from [email protected]  
npm ERR! node_modules/react-custom-scrollbars-2
npm ERR!   react-custom-scrollbars-2@"*" 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.

Should probably add react ^18.0.0 to the list of peer dependencies as well.

MohammadxAli avatar Apr 09 '22 07:04 MohammadxAli