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

Npm install is not working with latest major version of @capacitor/preferences (6.0.0) #445

Open
jakubkoje opened this issue May 13, 2024 · 0 comments

Comments

@jakubkoje
Copy link

jakubkoje commented May 13, 2024

Environment

"devDependencies": {
    ...
    "unstorage": "^1.10.2",
    "@capacitor/preferences": "^6.0.0"
    ...
}

Node: v20.10.0

Reproduction

I feel like empty reproduction repo is not needed here, can provide if required.

Describe the bug

When installing latest unstorage and @capacitor/preferences with npm, unstorage cannot be resolved because of outdated peer dependency.

Additional context

There should not be any breaking changes in @capacitor/[email protected].

Logs

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/preferences
npm ERR!   dev @capacitor/preferences@"^6.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @capacitor/preferences@"^5.0.7" from [email protected]
npm ERR! node_modules/unstorage
npm ERR!   dev unstorage@"^1.10.2" from the root project
npm ERR!   unstorage@"^1.10.2" from [email protected]
npm ERR!   node_modules/nuxt
npm ERR!     dev nuxt@"^3.11.1" from the root project
npm ERR!     3 more (@nuxt/devtools, @vueuse/nuxt, @nuxt/devtools-kit)
npm ERR!   3 more (@nuxt/fonts, ipx, nitropack)
npm ERR! 
npm ERR! Conflicting peer dependency: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/preferences
npm ERR!   peerOptional @capacitor/preferences@"^5.0.7" from [email protected]
npm ERR!   node_modules/unstorage
npm ERR!     dev unstorage@"^1.10.2" from the root project
npm ERR!     unstorage@"^1.10.2" from [email protected]
npm ERR!     node_modules/nuxt
npm ERR!       dev nuxt@"^3.11.1" from the root project
npm ERR!       3 more (@nuxt/devtools, @vueuse/nuxt, @nuxt/devtools-kit)
npm ERR!     3 more (@nuxt/fonts, ipx, nitropack)
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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant