You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following the steps to install @pinia-orm/nuxt, the install fails with unable to resolve dependency tree error. This happens when trying to run npm install @pinia-orm/nuxt --save after installing pinia for nuxt.
Steps
Create new nuxt project with npx nuxi@latest init newproject
The issue is fixed by installing @pinia/nuxt: ^0.5.1 so if that's required I think that should be added to the documentation.
In the reproduction I've added "overrides": { "vue": "latest" } to package.json (a fix mentioned in similar issues 12 and in the pinia docs) but it doesn't resolve the issue.
Logs
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @pinia/[email protected]
npm ERR! node_modules/@pinia/nuxt
npm ERR! @pinia/nuxt@"0.9.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @pinia/nuxt@"^0.5.1" from @pinia-orm/[email protected]
npm ERR! node_modules/@pinia-orm/nuxt
npm ERR! @pinia-orm/nuxt@"^1.10.1" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /root/.cache/npm/_logs/2025-01-22T19_44_45_235Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /root/.cache/npm/_logs/2025-01-22T19_44_45_235Z-debug-0.log
The text was updated successfully, but these errors were encountered:
Environment
playground
The error is shown in the log for the 'Install Dependencies' task.
Reproduction
https://codesandbox.io/p/sandbox/pinia-orm-nuxt-install-error-t2yc44
Describe the bug
When following the steps to install
@pinia-orm/nuxt
, the install fails withunable to resolve dependency tree
error. This happens when trying to runnpm install @pinia-orm/nuxt --save
after installing pinia for nuxt.Steps
npx nuxi@latest init newproject
npx nuxi@latest module add pinia
(https://pinia.vuejs.org/ssr/nuxt.html#installation)npm install @pinia-orm/nuxt --save
(https://pinia-orm.codedredd.de/guide/nuxt/setup)Additional context
The error shows that this package is looking for
@pinia/nuxt: ^0.5.1
but following the steps above will install@pinia/nuxt: ^0.9.0
.These dependencies can be found in
packages/nuxt/package.json
so I wonder if it's a simple case of updating thesepinia-orm/packages/nuxt/package.json
Line 42 in 1701f72
pinia-orm/packages/nuxt/package.json
Line 54 in 1701f72
The issue is fixed by installing
@pinia/nuxt: ^0.5.1
so if that's required I think that should be added to the documentation.In the reproduction I've added
"overrides": { "vue": "latest" }
to package.json (a fix mentioned in similar issues 1 2 and in the pinia docs) but it doesn't resolve the issue.Logs
The text was updated successfully, but these errors were encountered: