Skip to content

Conversation

@Kitten9533
Copy link

when using react@16.9

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: qrcode-react@0.1.16
npm ERR! Found: react@16.9.0
npm ERR! node_modules/react
npm ERR! react@"^16.5.0" from the root project
npm ERR! peer react@"^0.14 || ^15.0.0 || ^16.0.0-alpha" from airbnb-prop-types@2.16.0
npm ERR! node_modules/airbnb-prop-types
npm ERR! airbnb-prop-types@"^2.15.0" from enzyme-adapter-utils@1.13.0
npm ERR! node_modules/enzyme-adapter-utils
npm ERR! enzyme-adapter-utils@"^1.13.0" from enzyme-adapter-react-16@1.15.2
npm ERR! node_modules/enzyme-adapter-react-16
npm ERR! enzyme-adapter-react-16@"^1.1.1" from react-textscroll@1.0.0
npm ERR! node_modules/react-textscroll
npm ERR! 25 more (create-react-context, element-react, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"0.12 - 16.2" from qrcode-react@0.1.16
npm ERR! node_modules/qrcode-react
npm ERR! qrcode-react@"^0.1.16" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@16.2.0
npm ERR! node_modules/react
npm ERR! peer react@"0.12 - 16.2" from qrcode-react@0.1.16
npm ERR! node_modules/qrcode-react
npm ERR! qrcode-react@"^0.1.16" 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! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: qrcode-react@0.1.16
npm ERR! Found: react@16.9.0
npm ERR! node_modules/react
npm ERR!   react@"^16.5.0" from the root project
npm ERR!   peer react@"^0.14 || ^15.0.0 || ^16.0.0-alpha" from airbnb-prop-types@2.16.0
npm ERR!   node_modules/airbnb-prop-types
npm ERR!     airbnb-prop-types@"^2.15.0" from enzyme-adapter-utils@1.13.0
npm ERR!     node_modules/enzyme-adapter-utils
npm ERR!       enzyme-adapter-utils@"^1.13.0" from enzyme-adapter-react-16@1.15.2
npm ERR!       node_modules/enzyme-adapter-react-16
npm ERR!         enzyme-adapter-react-16@"^1.1.1" from react-textscroll@1.0.0
npm ERR!         node_modules/react-textscroll
npm ERR!   25 more (create-react-context, element-react, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"0.12 - 16.2" from qrcode-react@0.1.16
npm ERR! node_modules/qrcode-react
npm ERR!   qrcode-react@"^0.1.16" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@16.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"0.12 - 16.2" from qrcode-react@0.1.16
npm ERR!   node_modules/qrcode-react
npm ERR!     qrcode-react@"^0.1.16" 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.
…_json-peerDependencies

Update package.json peerDependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant