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] Cannot install the package due to react-native-reanimated version conflict #245

Closed
hpelitebook745G2 opened this issue Nov 23, 2023 · 2 comments · Fixed by #246
Closed

Comments

@hpelitebook745G2
Copy link

Describe the bug
I cannot install the package in the first place due to react-native-reanimated version conflict. My project uses npm and not yarn.

To Reproduce
Steps to reproduce the behavior:

  1. Have a React Native project with versions:
"react-native": "0.72.5",
"react-native-reanimated": "^3.5.4",
  1. npm i react-native-notificated
  2. Error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: TestApp@0.0.1
npm ERR! Found: react-native-reanimated@3.5.4
npm ERR! node_modules/react-native-reanimated
npm ERR!   react-native-reanimated@"^3.5.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-reanimated@"^2.14.4" from react-native-notificated@0.1.3
npm ERR! node_modules/react-native-notificated
npm ERR!   react-native-notificated@"*" 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.

Expected behavior
To be install the package

Possible Solution
To use the version from the root project if detected.

@PdoubleU
Copy link
Collaborator

Hi @hpelitebook745G2, thanks for bringing it up, we will address this issue and let you know. For now, please try installing the package with --legacy-peer-deps or downgrade the root version to 2.x.x. The library is working with reanimated 3.x.x (I was using it with Expo recently).

@PdoubleU
Copy link
Collaborator

Hi @hpelitebook745G2, this has been fixed with v0.1.4, please let me know if you have other issues :)

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