問題描述
Syntax Error: Error:
Vue packages version mismatch:
- vue@2.6.10 (D:\work\xxx\_web\node_modules\vue\dist\vue.runtime.common.js)
- vue-template-compiler@2.6.14 (D:\work\xxx\_web\node_modules\vue-template-compiler\package.json)
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
解決方法
修改vue-template-compiler的版本號,與vue保持一致:
npm i vue-template-compiler@2.6.10 --save