rili-live / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
42 stars 54 forks source link

npm ERR! code ERESOLVE - cannot install package #45

Open Goowwy opened 1 year ago

Goowwy commented 1 year ago

npm ERR! Found: react-native@0.68.2 npm ERR! node_modules/react-native npm ERR! react-native@"0.68.2" from the root project npm ERR! peer react-native@">=0.57" from @react-native-picker/picker@2.4.8 npm ERR! node_modules/@react-native-picker/picker npm ERR! peer @react-native-picker/picker@">= 2.0" from react-native-phone-input@1.3.5 npm ERR! node_modules/react-native-phone-input npm ERR! react-native-phone-input@"" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react-native@"^0.70.4" from react-native-phone-input@1.3.5 npm ERR! node_modules/react-native-phone-input npm ERR! react-native-phone-input@"" 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.

mcdominik commented 1 year ago

I have very similar problem.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @react-native-firebase/auth@16.4.3
npm ERR! Found: @react-native-firebase/app@15.4.0
npm ERR! node_modules/@react-native-firebase/app
npm ERR!   @react-native-firebase/app@"~15.4.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @react-native-firebase/app@"16.4.3" from @react-native-firebase/auth@16.4.3
npm ERR! node_modules/@react-native-firebase/auth
npm ERR!   @react-native-firebase/auth@"^16.4.3" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @react-native-firebase/app@16.4.3
npm ERR! node_modules/@react-native-firebase/app
npm ERR!   peer @react-native-firebase/app@"16.4.3" from @react-native-firebase/auth@16.4.3
npm ERR!   node_modules/@react-native-firebase/auth
npm ERR!     @react-native-firebase/auth@"^16.4.3" 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! 

Currently I have react-native 0.70.6

Jonathan64340 commented 1 year ago

Hello, same issue

salahuddina999 commented 1 year ago

any solution ???

salahuddina999 commented 1 year ago

Currently I have react-native 0.71.1 same issue

zizzle6717 commented 1 year ago

I'm not exactly sure what is causing this issue. You can use npm link to test different package.json dependency versions. If you find a solution, please make a PR and I can publish it.

YoavSher commented 1 year ago

What worked for me was to delete node_modules, update my react native dependency to 0.70.5, my react dependency to 18.1.0 and npm i. Maybe the package has issues with some of the later version of react or react native

alexnita20 commented 1 year ago

I used 1.3.4 version of this module and installed the latest version of "@react-native-picker/picker". This worked for me with react native 0.71.3.