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.07k stars 795 forks source link

Package dependency error #481

Open tragicmj opened 2 years ago

tragicmj commented 2 years ago

Issue Description

Unable to install the package code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: baa@0.0.1 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"17.0.2" 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.2.0" from react-dom@18.2.0 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! See /Users/mdjavedakhtar/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mdjavedakhtar/.npm/_logs/2022-07-08T07_44_25_473Z-debug-0.log mdjavedakhtar@Mds-MacBook-Pro mobile-application % npm i react-native-country-picker-modal npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: baa@0.0.1 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"17.0.2" 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.2.0" from react-dom@18.2.0 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! See /Users/mdjavedakhtar/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mdjavedakhtar/.npm/_logs/2022-07-08T07_47_15_880Z-debug-0.log

Steps to Reproduce / Code Snippets

Try installing it on "react-native": "0.66.1"

Expected Results

Package Should install

Additional Information

MinaSamir11 commented 1 year ago

same issue here can you update dependencies @xcarpentier

yushanwebdev commented 4 months ago

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