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 examples/vue/2.6-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"typescript": "5.8.3",
"vite": "^4.5.3",
"vite": "^5.4.20",
"vite-plugin-vue2": "2.0.3"
}
}
2 changes: 1 addition & 1 deletion examples/vue/2.7-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"typescript": "5.8.3",
"vite": "^4.5.3",
"vite": "^5.4.20",
"vite-plugin-vue2": "2.0.3"
}
Comment on lines 15 to 19
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Switch from deprecated vite-plugin-vue2 to @vitejs/plugin-vue2; ensure compatibility with Vite ≥5 (optionally bump to 6.3.6) and Node ≥18.

  • [email protected] is archived/EOL and targets Vue ≤2.6; it doesn’t declare support for Vite 5. Use the official @vitejs/plugin-vue2 for Vue 2.7, which added Vite 6 support in v2.3.3. Also, Vite 5 requires Node 18+. (github.com, gitlab.com)

Apply this minimal replacement within devDependencies:

 "devDependencies": {
   "typescript": "5.8.3",
-  "vite": "^5.4.20",
-  "vite-plugin-vue2": "2.0.3"
+  "vite": "^5.4.20",
+  "@vitejs/plugin-vue2": "^2.3.3"
 }

Optionally align to the security-fixed Vite 6 line (plugin supports it):

-  "vite": "^5.4.20",
+  "vite": "^6.3.6",

Add a Node engines constraint (outside this hunk) to avoid local-env drift:

"engines": { "node": ">=18.0.0" }
🤖 Prompt for AI Agents
In examples/vue/2.7-basic/package.json around lines 15-19, replace the
deprecated "vite-plugin-vue2": "2.0.3" with the official "@vitejs/plugin-vue2"
(use a release >=2.3.3 to ensure Vite 6 compatibility); optionally bump "vite"
to a secure 6.x line (e.g., ^6.3.6) to align with the plugin, and update
devDependencies accordingly; also add an "engines": {"node": ">=18.0.0"} field
elsewhere in package.json to require Node 18+.

}
Loading
Loading