Can't start nuxt: Transform failed with 1 error: <stdin>:11:3: ERROR: Unexpected ","
I tried everything and I can't get nuxt to start after upgrading to 3.15.4
I tried also with:
Does anyone has any suggestion?
5 Replies
Hi @cosbgn. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the knowledge sources, it appears that you're experiencing an issue with Nuxt 3.15.4. While there isn't a direct solution to your specific error message in the given sources, there are a few relevant points and suggestions that might help:
1. Vite compatibility: Some users have reported issues related to Vite 6, which is included in recent Nuxt versions. Your attempt to override Vite to version 5.4.11 is a good approach, as mentioned in one of the comments here.
2. Cleaning up: Before starting Nuxt, you could try cleaning up your project. As suggested in some of the comments, you can try:
- Removing the
.nuxt
, .output
, and node_modules
directories
- Deleting the package-lock.json
file
- Running npm i
(or your preferred package manager's install command)
- Running npx nuxi cleanup
before starting the dev server
3. Disabling app manifest: As a workaround, you can try disabling the app manifest in your nuxt.config.ts
file:
This solution was suggested by a Nuxt team member here.
4. Checking for syntax errors: The error message you're seeing ("Unexpected ","") suggests there might be a syntax error in one of your files. Double-check your configuration files and components for any misplaced commas or other syntax issues.
5. Considering a rollback: If none of the above solutions work, you might want to consider temporarily rolling back to a previous version of Nuxt where your project was working correctly, as some users reported success with this approach.
If these suggestions don't resolve your issue, you might want to create a minimal reproduction of the problem and open an issue on the Nuxt GitHub repository for more specific assistance from the Nuxt team.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@335585860764303360> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
experimental: { appManifest: false }
This didn't work
Minimal reproduction
It was because of a watcher - Fixed!