作者:燕歆波
在使用VSCode开发H5项目时,碰到了这样的问题,
error in .....
Module Error (from.......)
Vue packages version mismatch:
-vue@2.6.12(....../vue.runtime.common.js)
-vue-template-compiler@2.6.12(...../vue-tempiler-compiller/package.json)
........
试了很多种办法,删除node_modules重新安装也不行,最后尝试安装找不到的js:
npm i vue-template-compiler@2.6.12 --save
然后重新启动:
npm run dev
最终可以了!