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

Throwing dependency issues when building for RN 0.74+ #994

Open
pTinosq opened this issue Sep 3, 2024 · 0 comments
Open

Throwing dependency issues when building for RN 0.74+ #994

pTinosq opened this issue Sep 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pTinosq
Copy link

pTinosq commented Sep 3, 2024

We are looking to upgrade to RN 0.74.4 and have found that this package is throwing issues where the peer dependency with @react-native-async-storage/async-storage is not compatible. This error started appearing when we upgraded @react-native-async-storage/async-storage to v2.0.0. Would it be possible to update the library so it is compatible with 2.0.0?

  • analytics-react-native version: ^2.19.4
  • Integrations versions (if used): "@react-native-async-storage/async-storage": "^2.0.0"
  • React Native version: 0.74.3
  • iOS or Android or both? Android

Steps to reproduce

  1. Upgrade "@react-native-async-storage/async-storage": "^2.0.0"
  2. Try and run npm i

Expected behavior
It should install all packages with no issue

Actual behavior

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @segment/[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!
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/analytics-react-native
npm ERR!   @segment/analytics-react-native@"^2.19.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @react-native-async-storage/[email protected]
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR!   peerOptional @react-native-async-storage/async-storage@"1.x" from @segment/[email protected]
npm ERR!   node_modules/@segment/analytics-react-native
npm ERR!     @segment/analytics-react-native@"^2.19.4" 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.
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