Closed aydincankalyoncu closed 3 months ago
This is expected since according to npm, 0.74.0-rc.2
doesn't satisfy >=0.60 <1.0
; prereleases aren't included when resolving ranges.
You can turn the error into a warning with a flag though. Try npm i --legacy-peer-deps
instead (see strict-peer-deps
).
Closing the issue since it's not an AsyncStorage bug.
What happened?
After updating react native version to 0.74.0-rc.2 in React native project, the dependency could not be resolved when starting the project.
Error message:
Found: react-native@0.74.0-rc.2 npm ERR! node_modules/react-native npm ERR! react-native@"^0.74.0-rc.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react-native@"^0.0.0-0 || >=0.60 <1.0" from @react-native-async-storage/async-storage@1.22.3 npm ERR! node_modules/@react-native-async-storage/async-storage npm ERR! @react-native-async-storage/async-storage@"^1.21.0" from the root project
Version
1.21.0
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
Update the react native version to latest release candidate. Start the project with android.