Vue跳坑

215 阅读1分钟

IDEA启动时报错:

Module build failed: Error:



Vue packages version mismatch:

- vue@2.6.10
- vue-template-compiler@2.5.16

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.

    at Object.<anonymous> (I:\Project\LeYou\leyou-manage-web\node_modules\vue-template-compiler\index.js:8:9)

错误原因:

版本冲突

解决方法:

npm install vue@2.5.16 --save

再重新启动:

npm run dev

完美解决问题!