Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"nuxt-start": "^2.14.3"
},
"devDependencies": {
"nuxt": "^2.14.3"
"nuxt": "^3.0.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nuxt 2's nuxt-start package is incompatible with Nuxt 3 and should be removed from dependencies since it's not needed in Nuxt 3.

View Details
📝 Patch Details
diff --git a/package.json b/package.json
index 91f6add..cbd0e00 100644
--- a/package.json
+++ b/package.json
@@ -7,16 +7,15 @@
   "scripts": {
     "dev": "nuxt",
     "build": "nuxt build",
-    "start": "nuxt-start"
+    "start": "nuxt preview"
   },
   "dependencies": {
     "@nuxtjs/auth": "^4.9.1",
     "@nuxtjs/axios": "^5.12.2",
     "dotenv": "^8.2.0",
     "normalize.css": "^8.0.1",
-    "nuxt-start": "^2.14.3"
+    "nuxt": "^3.0.0"
   },
   "devDependencies": {
-    "nuxt": "^3.0.0"
   }
 }

Analysis

Nuxt 2's nuxt-start package is incompatible with Nuxt 3

What fails: npm run start fails with fatal Vue version mismatch error when nuxt-start@^2.14.3 is installed alongside nuxt@^3.0.0

How to reproduce:

npm install
npm run start

With the buggy package.json (having nuxt-start@^2.14.3 in dependencies and nuxt@^3.0.0 in devDependencies), the start script runs:

nuxt-start

Result:

 FATAL 

Vue packages version mismatch:

- vue@3.5.24
- vue-server-renderer@2.7.16

This may cause things to work incorrectly. Make sure to use the same version for both.

Expected: The production server should start successfully. In Nuxt 3, the nuxt-start package was removed and replaced with nuxt preview command which is an alias for nuxt start. The fix moves nuxt from devDependencies to dependencies and changes the start script from nuxt-start to nuxt preview.

References:

}
}
Loading