**报错问题:**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有两种形式的代码 compiler(模板)模式和runtime模式(运行时),vue模块的package.json的main字段默认为runtime模式
解决方案:在vue.config.js中添加runtimeCompiler: true来开启Compiler支持
runtimeCompiler: true