Update dependencies in v1 to support react v17
h3rmanj opened this issue · 3 comments
h3rmanj commented
Installing react-popper@1
in a project containing react@17
, with npm@7
results in the following error:
> npm i react-popper@1
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! peer react@"17.0.1" from react-dom@17.0.1
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^17.0.1" from the root project
npm ERR! react@"^17.0.1" from the root project
npm ERR! 1 more (react-popper)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from create-react-context@0.3.0
npm ERR! node_modules/react-popper/node_modules/create-react-context
npm ERR! create-react-context@"^0.3.0" from react-popper@1.3.9
npm ERR! node_modules/react-popper
npm ERR! react-popper@"1" 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.
While there are active pull requests to create-react-context to support v17, it seems to be abandoned. A fork has been made to support it, and uploaded to npm as @hypnosphi/create-react-context
. jamiebuilds/create-react-context#32 (comment)
I hope react-popper can use this package instead. Will add a merge request.
h3rmanj commented
Keeping this one open until it's released
FezVrasta commented
1.3.10 includes this fix :-)
h3rmanj commented
Oh sorry, I was too quick. Thanks!