Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bilal-Abdeen opened this issue Jul 9, 2021 · 1 comment
Open

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

Bilal-Abdeen opened this issue Jul 9, 2021 · 1 comment

Comments

@Bilal-Abdeen
Copy link
Contributor

Bilal-Abdeen commented Jul 9, 2021

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:

  • Version: the latest vesrion, which is available through the install command above - I suppose it is 1.8.3
  • React Native version: 0.64.2
  • Device: iOS simulator 14.4
  • Development Platform: iOS 10.15.5

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants