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.14",
"vite": "^7.1.9",
"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.14",
"vite": "^7.1.9",
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

Vite 7 requires Node >= 18

Ensure CI/dev environments and package engines align.


🏁 Script executed:

#!/bin/bash
# Check for engines fields
rg -nP '"engines"\s*:\s*{\s*"node"\s*:\s*"[^"]+"' -C1 --glob 'examples/**/package.json'
node -v 2>/dev/null || echo "Node not available in CI context"

Length of output: 7


Add Node engine field to package.json
Include an engines section in examples/vue/2.7-basic/package.json with "node": ">=18" to match Vite 7’s requirement.

🤖 Prompt for AI Agents
In examples/vue/2.7-basic/package.json around line 17, add an "engines" field
specifying Node >=18 to match Vite 7’s requirement; update the package.json to
include an "engines": { "node": ">=18" } entry at top-level so package managers
and contributors are aware of the required Node version.

"vite-plugin-vue2": "2.0.3"
}
}
Loading