npm install -g vetur@latest # or update via VS Code extensions If using ESLint plugin for Vue:
npm uninstall vue-template-compiler npm uninstall @vue/composition-api Then update imports: upgrade vue 2.6 to 2.7
npm install vue-loader@^15.10.0 --save-dev For Webpack config, ensure .vue files are handled correctly: npm install -g vetur@latest # or update via
| Package | Old version (example) | New version | |---------|----------------------|--------------| | vue-template-compiler | 2.6.x | Remove (no longer needed) | | @vue/composition-api | any | Remove (built-in now) | | vue-loader | 15.x | ^15.10.0 | | vue-style-loader | any | no change needed | Remove vue-template-compiler Vue 2.7 uses an internal template compiler – you no longer need the separate package. But be aware of these: 1
If you used @vue/runtime-dom or @vue/runtime-core types, remove them. Update vetur to latest:
module.exports = extends: ['plugin:vue/vue3-recommended'], // yes, 'vue3' works for 2.7 ; Most apps work without changes. But be aware of these: 1. v-model on custom components Vue 2.7 aligns with Vue 3’s v-model behavior. Previously, v-model on a component compiled to value + input . Now it compiles to modelValue + update:modelValue .