N
Nuxt2y ago
jpedro73

Multiple errors after updated from nuxt 3.4.1 to 3.4.2

Hi! The first error is: Error parsing JavaScript expression: Unexpected token, expected "," (1:10)
No description
6 Replies
jpedro73
jpedro73OP2y ago
The second error is:
No description
jpedro73
jpedro73OP2y ago
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"
}
}
{
"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"
}
}
Orbviox
Orbviox2y ago
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
jpedro73
jpedro73OP2y ago
Hi @Orbviox Hi @Orbviox ! 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
dmarr
dmarr2y ago
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
jpedro73
jpedro73OP2y ago
Hi @dmarr 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 Hi @dmarr ! Can i DM you? The Nuxt 3.4.3 have no errors. Thanks to all.

Did you find this page helpful?