npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @react-native-community/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR! peer react@">=16.3.0" from @callstack/[email protected]
npm ERR! node_modules/@callstack/react-theme-provider
npm ERR! @callstack/react-theme-provider@"^3.0.7" from [email protected]
npm ERR! node_modules/react-native-paper
npm ERR! react-native-paper@"^4.12.4" from the root project
npm ERR! 25 more (@react-native-community/masked-view, ...)
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@"^1.12.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
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@"^1.12.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.
CodePudding user response:
The package @react-native-community/async-storage
was renamed to @react-native-async-storage/async-storage
when it was removed out of the @react-native-community
scope.
In your package.json
file, replace @react-native-community/async-storage
with the updated @react-native-async-storage/async-storage
package!