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