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

@segment/sovran-react-native package not updated on npm #1006

Open
admapop opened this issue Oct 1, 2024 · 0 comments
Open

@segment/sovran-react-native package not updated on npm #1006

admapop opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@admapop
Copy link

admapop commented Oct 1, 2024

Even though on github I can clearly see that the peer dependency for @react-native-async-storage/async-storage is now 2.x, on npm if you explore the code it's still 1.x, you can check link.

This means that in a project with @react-native-async-storage/async-storage: 2.0.0 I get the following error installing analytics-react-native

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: app-expo@1.0.0
npm ERR! Found: @react-native-async-storage/async-storage@2.0.0
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR!   @react-native-async-storage/async-storage@"^2.0.0" from the root project
npm ERR!   peerOptional @react-native-async-storage/async-storage@"2.x" from @segment/analytics-react-native@2.19.5
npm ERR!   node_modules/@segment/analytics-react-native
npm ERR!     @segment/analytics-react-native@"2.19.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @react-native-async-storage/async-storage@"1.x" from @segment/sovran-react-native@1.1.2
npm ERR! node_modules/@segment/sovran-react-native
npm ERR!   @segment/sovran-react-native@"^1.1.2" from the root project
npm ERR!   peer @segment/sovran-react-native@"^1.1.0" from @segment/analytics-react-native@2.19.5
npm ERR!   node_modules/@segment/analytics-react-native
npm ERR!     @segment/analytics-react-native@"2.19.5" 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.
  • analytics-react-native version: 2.19.5
  • Integrations versions (if used):
  • React Native version:
  • iOS or Android or both?

Steps to reproduce:
Install latest sovran version (1.1.2), install latest @react-native-async-storage/async-storage, and then install latest analytics-react-native

Expected behavior
Dependency resolution should not fail.

Actual behavior
Dependency resolution fails

@admapop admapop added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant