react-native-eva-icons icon indicating copy to clipboard operation
react-native-eva-icons copied to clipboard

[email protected] but i use [email protected]

Open gxanshu opened this issue 2 years ago • 8 comments

💬 Question

Could not resolve dependency: npm ERR! peer react@"16.5.0" from [email protected]

React Native Eva Icons Version

gxanshu avatar Aug 23 '21 07:08 gxanshu

I have the same problem. Is there a fix for this?

samuelcbird avatar Nov 11 '21 19:11 samuelcbird

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

agjini avatar Dec 08 '22 10:12 agjini

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

artyorsh avatar Dec 15 '22 08:12 artyorsh

Hello @artyorsh and thanks for the explanation. Please let us know when the new version is published on npm.

agjini avatar Dec 15 '22 10:12 agjini

Hi @artyorsh, any updates on npm publish ?

agjini avatar Jan 05 '23 10:01 agjini

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

artyorsh avatar Jan 06 '23 15:01 artyorsh

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:

  1. Create a file named .npmrc in the root directory
  2. Write in that file the line legacy-peer-deps=true

I hope that helps some of you!

Mioriarty avatar Jun 21 '23 07:06 Mioriarty

On Expo projects, you could add the following in your package.json:

"scripts": { "eas-build-pre-install": "npm config set legacy-peer-deps true", },

SoloReverse avatar Jul 07 '23 21:07 SoloReverse