react-native-eva-icons
react-native-eva-icons copied to clipboard
[email protected] but i use [email protected]
💬 Question
Could not resolve dependency: npm ERR! peer react@"16.5.0" from [email protected]
React Native Eva Icons Version
I have the same problem. Is there a fix for this?
I've also the same problem with my project that use react 18. For the moment we have to use --legacy-peer-deps flag on npm install.
I'm proposing a PR where I'm trying to solve the issue :
PR #46
The fix from @agjini resolves the issue, but for the sake of completeness I need to reinstall deps to regenerate yarn.lock
- otherwise the codebase is not in actual state. I ignored it for a while, so now it will take time to bump dependencies and make sure everything, including example app, is runnable. I will post an update to NPM once this is done.
If you need a fix please either use --legacy-peer-deps
or install the package from github
Hello @artyorsh and thanks for the explanation. Please let us know when the new version is published on npm.
Hi @artyorsh, any updates on npm publish ?
Yep. I'm currently working on it in my free time, please understand. The progress so far: https://github.com/artyorsh/react-native-eva-icons/pull/47
It seems the only thing to fix is jest setup, something to do with config files. The rest seem to be running normally
For me, the error still occured when I tried to build my expo app using expo's eas cli. I just wanted to share how I fixed the issue. It is pretty simple:
- Create a file named
.npmrc
in the root directory - Write in that file the line
legacy-peer-deps=true
I hope that helps some of you!
On Expo projects, you could add the following in your package.json:
"scripts": { "eas-build-pre-install": "npm config set legacy-peer-deps true", },