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

ERESOLVE unable to resolve dependency tree #32

Open
santoshgistto opened this issue Sep 24, 2021 · 2 comments
Open

ERESOLVE unable to resolve dependency tree #32

santoshgistto opened this issue Sep 24, 2021 · 2 comments

Comments

@santoshgistto
Copy link

Describe the bug
unable to resolve dependency tree once we upgraded to latest version of capacitor
To Reproduce
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: myproject@0.0.1
npm ERR! Found: @capacitor/core@3.2.3
npm ERR! node_modules/@capacitor/core
npm ERR! @capacitor/core@"^3.2.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"~1.3.0" from @ionic/react-hooks@0.0.8
npm ERR! node_modules/@ionic/react-hooks
npm ERR! @ionic/react-hooks@"0.0.8" 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

@mattbatman
Copy link

I have the same problem after upgrading Node from ~v14 to ~v16. My impression from the README is that @ionic/react-hooks is no longer needed after upgrading capacitor. However, after removing it from my project, useRef no longer works.

@elylucas
Copy link
Contributor

@ionic/react-hooks (the old library) and @capacitor-community/react-hooks (the lib for cap v2), are not supported in capacitor v3. Check the readme for instructions on how to use with Capacitor v3

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

No branches or pull requests

3 participants