ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.04k stars 612 forks source link

Install fails with react@17.0.1 #1180

Closed owencraston closed 3 years ago

owencraston commented 3 years ago

Reproduction link

https://github.com/owencraston/MyTestApp

Steps to reproduce

In above repo run the following install command...

What is expected?

It should successfully install the package as a dependency on my app

What is actually happening?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mytestapp@0.0.1
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   react@"17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8" from @react-native-community/async-storage@1.12.1
npm ERR! node_modules/@react-native-community/async-storage
npm ERR!   peer @react-native-community/async-storage@">= 1.11.0" from @ant-design/react-native@4.1.0
npm ERR!   node_modules/@ant-design/react-native
npm ERR!     @ant-design/react-native@"*" 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.
Environment Info
antd 4.1.0
React 17.0.1
React native 0.64.1
System MacOS Big Sur version 11.3.1
Browser Chrome

npm version 7.16.0

owencraston commented 3 years ago
Screen Shot 2021-06-07 at 7 31 45 PM
BANG88 commented 3 years ago

Please check your async-storage version at first. Thank you.