vue要升级,一般就是升级 vue 和 vue-template-compiler,两者的版本需要同步
第一步
npm update vue-template-compiler -D 或者 yarn add vue-template-compiler -D
第二步
npm update vue -S 或者 yarn add vue -S
完成
小提示:安装完成可能会报报 in ./src/main.ts Module build failed(from ./node_modules/_babel-loader@8.0.6@babel-loader/