himelbrand / react-native-numeric-input

a stylish numeric input for react native
MIT License
150 stars 98 forks source link

[BUG] - I'm having an issue with... #79

Open Bilal-Abdeen opened 3 years ago

Bilal-Abdeen commented 3 years ago

Describe the bug I am trying to install this wonderful library on an iOS machine (10.15.5.) I got the error messages below.

When installing on MS Windows 10, the installation finishes successfully. It gives a warning about the presence of a new version of react-native-vector-icons than required. However, it works fine.

Error:

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: <MyProjectName>
npm ERR! Found: react-native-vector-icons@8.1.0
npm ERR! node_modules/react-native-vector-icons
npm ERR!   react-native-vector-icons@"^8.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-vector-icons@"^4.*" from react-native-numeric-input@1.9.0
npm ERR! node_modules/react-native-numeric-input
npm ERR!   react-native-numeric-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.
npm ERR! 
npm ERR! See /Users/<MyUserName>/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/<MyUserName>/.npm/_logs/2021-07-09T08_43_40_376Z-debug.log

To Reproduce npm install --save react-native-vector-icons npm install --save react-native-numeric-input

Enviorment:

Additional Information As the error message says, react-native-vector-icons version 8.1.0 is installed. I tried to install an earlier version 4.6.0. I got error messages regarding the dependency for other libraries, i.e. react-native-elements.

karanzijm commented 2 years ago

This maybe a temporary solution but go ahead and try installing the lib with the --legacy-peer-deps option. This means there's no need to downgrade the vector icon lib. This solved the same issue for me