Upgrading from 3.5.0 to 3.13.2 is breaking build
I used
npx nuxi upgrade
, as described by the documentation.
Now when I try to npm run generate
, which in my package.json maps to nuxt generate
, I get this;
I'm not sure what the issue is to fix, though?
Also, the nuxt
dependency got moved from dependencies
to devDependencies
, which would break my deployment process (npm ci --omit=dev && npm run generate
).7 Replies
I removed my node_modules and package-lock.json and now everything is broken.
Can't even install again
can you create a minimal reproduction?
I imagine it's some stupid issue with one package being on an older version and I just have to keep trying to upgrade stuff until I find which.
try pnpm dedupe
nvm you did delete lockfile already
are you using useId in your project?
... I've rolled back my changes to my package.json and it's still scuffed
I'm now getting a bunch of version conflicts on what was a clean setup.
restored my package-lock to what's in git, everything is fine, everything is out of date, updating breaks the world
Soooo, updating stuff one by one, I seem to have been able to do everything, except
pinia
;
If I try to update it, npm i pinia@^2.2.4
, it conflicts;
this is a bit weird, because I've got @nuxt/pinia
to the latest. 🤷♂️vue2?
useId is a Vue 3.5 thing. Try installing the latest version of Vue