vue与vue-template-compiler版本不匹配问题:Vue packages version mismatch


问题描述

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM