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

capacitor/core conflict with Ionic CLI 7 #23

Open
bnemani opened this issue May 21, 2023 · 7 comments
Open

capacitor/core conflict with Ionic CLI 7 #23

bnemani opened this issue May 21, 2023 · 7 comments

Comments

@bnemani
Copy link

bnemani commented May 21, 2023

I am getting capacitor/core conflict with latest version of this plugin:

following is the error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/core
npm ERR! @capacitor/core@"5.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^4.0.0" from @perfood/[email protected]
npm ERR! node_modules/@perfood/capacitor-healthkit
npm ERR! @perfood/capacitor-healthkit@"*" 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.

my ionic env:

Ionic:

Ionic CLI : 7.1.1 (/Users/bhanu/.nvm/versions/node/v16.16.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.0.7
@angular-devkit/build-angular : 16.0.2
@angular-devkit/schematics : 16.0.2
@angular/cli : 16.0.2
@ionic/angular-toolkit : 9.0.0

Capacitor:

Capacitor CLI : 5.0.3
@capacitor/android : not installed
@capacitor/core : 5.0.3
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.7.2

System:

NodeJS : v16.16.0 (/Users/bhanu/.nvm/versions/node/v16.16.0/bin/node)
npm : 9.6.5
OS : macOS Monterey

@bnemani bnemani changed the title capacitor/core conflict with Ionic CLI 7.1.1 capacitor/core conflict with Ionic CLI 7 May 21, 2023
@mahnuh
Copy link
Collaborator

mahnuh commented May 30, 2023

Hi @bnemani, Capacitor 5 support will be coming in the next weeks. For the time being, did you try to use --legacy-peer-deps when running npm install?

@adamrz
Copy link

adamrz commented Aug 4, 2023

Is Capacitor 5 support still coming?

@mahnuh
Copy link
Collaborator

mahnuh commented Aug 14, 2023

I starte working on a major update, but due to other responsibilities I do not have a timeline yet. Does --legacy-peer-deps do the trick for now?

@fitnexus
Copy link

fitnexus commented Nov 3, 2023

any update on the capacitor 5 compatibility?

@mahnuh
Copy link
Collaborator

mahnuh commented Nov 3, 2023

@fitnexus does this help? Otherwise we are working on v2 of this plugin which will be a major release with a lot of breaking changes. Please check out the v2 branch.

@binxiaosyd
Copy link

@mahnuh I got same dependency issue for Capacitor v5. I tried --legacy-peer-deps. It works without error locally, but we have to add that to all environments pipeline and any npm i for local in the future, so not ideal. I have tried to update the depended packages to latest version, and tested a few fns in my iPhone without issue. I have created a PR for it.

I also tried v2 branch, but got error for fn getAuthorizationStatus which asks for parameter sampleType, but iOS asks for sampleName. I forgot the exact error message. I am also interested how can it know if the status is notDetermined or sharingDenied as I got same empty resultData array in v1 queryHKitSampleType for both statuses.

@Nicolas22930
Copy link

hey there any news? :)

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

6 participants