千家信息网

Vue packages version mismatch: 版本始终不对的解决方案

发表于:2024-10-22 作者:千家信息网编辑
千家信息网最后更新 2024年10月22日,error in ./src/pages/home.vueModule build failed: Error:Vue packages version mismatch:- vue@2.4.4- v
千家信息网最后更新 2024年10月22日Vue packages version mismatch: 版本始终不对的解决方案

error in ./src/pages/home.vue


Module build failed: Error:


Vue packages version mismatch:


- vue@2.4.4

- vue-template-compiler@2.5.13


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 sho

uld bump vue-template-compiler to the latest.


出现这种错误之后可以使用命令,将vue的版本改成和vue-template-compiler的版本一致,使用命令

npm install vue@2.5.13 --save,然后直接运行就可以了!


0