#Multiple errors after updated from nuxt 3.4.1 to 3.4.2

14 messages · Page 1 of 1 (latest)

crisp lantern
#

Hi!
The first error is:
Error parsing JavaScript expression: Unexpected token, expected "," (1:10)

#

The second error is:

#

I 've tried to only update nuxt3.4.1 to 3.4.2 and preserving the pinia/nuxt in the old version 0.4.8, but also receives the same errors

#

My package.json is:

{
  "name": "viasxxi-tailwind",
  "private": true,
  "engines": {
    "node": "18.14.0"
  },
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare",
    "start": "node .output/server/index.mjs"
  },
  "devDependencies": {
    "@nuxt/devtools": "^0.4.1",
    "@nuxt/image-edge": "1.0.0-28020728.5df24eb",
    "nuxt": "^3.4.2",
    "nuxt-icon": "^0.3.3",
    "nuxt-lodash": "^2.4.1"
  },
  "dependencies": {
    "@jridgewell/sourcemap-codec": "^1.4.15",
    "@nuxtjs/tailwindcss": "^6.6.6",
    "@pinia/nuxt": "^0.4.9",
    "bcryptjs": "^2.4.3",
    "cloudinary": "^1.36.1",
    "export-to-csv": "^0.2.1",
    "jsonwebtoken": "^9.0.0",
    "jspdf": "^2.5.1",
    "jspdf-autotable": "^3.5.28",
    "mongoose": "^7.0.4",
    "validator": "^13.9.0"
  }
}
ocean dagger
#

Just to confirm, did you upgrade Nuxt using nuxi? That would be the best way

#

Second, @pinia/nuxt needs pinia as a dependency; I can't say if it was working without it for you previously, it never did for me and doing research, it should be added as a separate dependency

crisp lantern
#

Hi @ocean dagger !
I usually use pnpm updated and always worked well.
After seeing you msg, tried to update using pnpm dlx nuxi upgrade --force, same errors!

#

Even installing the pinia dependencies...same errors

crude void
#

can you try the 'debug npm script' vs code command and see if 'pause during uncaught exceptions' triggers?

#

you could also try linting to see where the error is. it's most likely your code somewhere

crisp lantern
#

Now I'm not in the PC, later I will do it.
It's not in the code, because before updated and using the old version, don't receive any error

crisp lantern
#

Hi @crude void !
Can i DM you?