报错信息:
Vue packages version mismatch:
- vue@2.5.17
- vue-template-compiler@2.5.2
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版本@2.5.2比项目引入的vue版本@2.5.17过高,回滚!
进入项目根路径,执行:
cnpm i vue-template-compiler@2.5.17 --save