vue 解决vue报You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build. 意思就是说 ,您使用的是仅运行时版本的Vue,这种情况下,模板编译器是不可用的,可以将模板预编译为呈现函数,也可以使用编译器包含的内部版本。

解决办法,将vue.config.js文件中增加vue$: "vue/dist/vue.esm.js",,然后重新运行项目即可。