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

Closed
admapop opened this issue Oct 1, 2024 · 6 comments
Closed

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

admapop opened this issue Oct 1, 2024 · 6 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: [email protected]
npm ERR! Found: @react-native-async-storage/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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
@ajenkins
Copy link
Contributor

For anyone else stuck on this, I was able to workaround this by installing the package from Github using GitPkg.

Here's the install command I used:

npm install 'https://gitpkg.vercel.app/segmentio/analytics-react-native/packages/sovran?master'

Then I installed the other required dependencies.

@admapop
Copy link
Author

admapop commented Oct 26, 2024

For anyone else stuck on this, I was able to workaround this by installing the package from Github using GitPkg.

Here's the install command I used:


npm install 'https://gitpkg.vercel.app/segmentio/analytics-react-native/packages/sovran?master'

Then I installed the other required dependencies.

This is awesome thanks!

I ended up forking, building and bundling a .tar with my app.

Will keep GitPkg in mind.

@kayakyakr
Copy link

This same issue is blocking our team. Unfortunately, I don't think there's a workaround for us, as we're procuring these to an internal artifactory.

Would love some 👀 on this.

@go-east
Copy link

go-east commented Nov 10, 2024

Same issue here. can you release NPM package?

@kayakyakr
Copy link

Created a PR to bump the version, dunno if there's automation to automatically release, but felt like a good idea.

@alanjcharles
Copy link
Contributor

resolved in 1.1.3

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

Successfully merging a pull request may close this issue.

5 participants