hhunaid / react-native-image-crop-tools

Native-ish Image Crop Tools for react native
171 stars 58 forks source link

Could not resolve dependency peer react@"^16.8.1" with React Native 0.7x #77

Open fcaldarelli opened 1 year ago

fcaldarelli commented 1 year ago

Trying to install into React Native 0.71, I have this error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: tinaba-next-react@0.0.1
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.1" from react-native-image-crop-tools@1.6.2
npm ERR! node_modules/react-native-image-crop-tools
npm ERR!   react-native-image-crop-tools@"^1.6.2" 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

due to wrong peer dependency

"peerDependencies": {
    "react": "^16.8.1",
    "react-native": ">=0.59.0-rc.0 <1.0.x"
},