Skip to content

Latest version doesn't support react 17 - Could not resolve dependency: peer react@"^16.8" #688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mfbx9da4 opened this issue Oct 12, 2021 · 1 comment

Comments

@mfbx9da4
Copy link

mfbx9da4 commented Oct 12, 2021

Current behavior

Installing the latest rn version depends on react 17 but async storage depends on react 16

╰─$ npm i @react-native-community/async-storage                           130 ↵
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@"^16.8" from @react-native-community/[email protected]
npm ERR! node_modules/@react-native-community/async-storage
npm ERR!   @react-native-community/async-storage@"*" 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! 
@tido64
Copy link
Member

tido64 commented Oct 12, 2021

Closing since you figured it out here: #682 (comment)

@tido64 tido64 closed this as completed Oct 12, 2021
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

No branches or pull requests

2 participants