Module build failed: Error:
Vue packages version mismatch:
- vue@2.5.22
- vue-template-compiler@2.5.17
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的依赖的版本不匹配,一个是vue 2.5.22,一个是vue-template-compiler 2.5.17,通过安装一样的版本即可。
我这用的是yarn
yarn add vue-template-compiler@2.5.17 --save-dev
当然你也可以用npm或者cnpm
npm install vue-template-compiler@2.5.17