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: unable to resolve dependency tree #38

Open
Dakuan opened this issue Dec 19, 2024 · 1 comment
Open

bug: unable to resolve dependency tree #38

Dakuan opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Dakuan
Copy link

Dakuan commented Dec 19, 2024

Describe the bug

 npm i @logto/rn
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.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @react-native-async-storage/async-storage@"^1.23.1" from @logto/[email protected]
npm ERR! node_modules/@logto/rn
npm ERR!   @logto/rn@"*" 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

should install correctly

How to reproduce?

follow steps on https://blog.logto.io/expo-react-native

@Dakuan Dakuan added the bug Something isn't working label Dec 19, 2024
@simeng-li
Copy link
Contributor

The error occurs because there is a version conflict between the installed version of @react-native-async-storage/async-storage in your project and the version required as a peer dependency by the @logto/rn package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants