xcarpentier / react-native-country-picker-modal

🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.08k stars 801 forks source link

Getting dependency issue while using this library. #523

Open Akash-260 opened 7 months ago

Akash-260 commented 7 months ago

Issue Description

npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.13.1" from react-art@16.13.1 npm ERR! node_modules/react-art npm ERR! peer react-art@"16.x.x" from modal-react-native-web@0.2.0 npm ERR! node_modules/react-native-country-picker-modal/node_modules/modal-react-native-web npm ERR! modal-react-native-web@"0.2.0" from react-native-country-picker-modal@2.0.0 npm ERR! node_modules/react-native-country-picker-modal npm ERR! react-native-country-picker-modal@"^2.0.0" from the root project npm ERR! peer react-art@">=16.5.1" from react-native-web@0.9.13 npm ERR! node_modules/react-native-web npm ERR! peer react-native-web@"*" from react-native-country-picker-modal@2.0.0 npm ERR! node_modules/react-native-country-picker-modal npm ERR! react-native-country-picker-modal@"^2.0.0" from the root project npm ERR! 1 more (modal-react-native-web) npm ERR!

I want to know to use this library we want which version of React. To resolve the conflict problem.

[FILL THIS OUT]

Additional Information

ChamaraWP commented 6 months ago

Having the same issue seems like they are no longer maintaining this

yushanwebdev commented 6 months ago

@Akash-260 @ChamaraWP, you can start using this one if you like https://github.com/yushanwebdev/react-native-country-picker-modal

ChamaraWP commented 6 months ago

@Akash-260 @ChamaraWP, you can start using this one if you like https://github.com/yushanwebdev/react-native-country-picker-modal

Thanks, I will give it a try

Muzamil63 commented 6 months ago

@Akash-260 did you find any solution?

Punith-goud commented 4 months ago

+1

josephattechjays commented 3 weeks ago

yes same issue, are there any patches?

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: PushInstaller@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!   peer react@"*" from react-native-country-picker-modal@2.0.0
npm ERR!   node_modules/react-native-country-picker-modal
npm ERR!     react-native-country-picker-modal@"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.3.1" from react-dom@18.3.1
npm ERR! node_modules/react-dom
npm ERR!   peer react-dom@"*" from react-native-country-picker-modal@2.0.0
npm ERR!   node_modules/react-native-country-picker-modal
npm ERR!     react-native-country-picker-modal@"*" 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!
npm ERR!