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.

image

错误原因

不同的构建版本的内容不一样:
image

解决方法

根目录创建一个vue.config.js文件夹,加上如下代码即可。vue cli 3.10.0

module.exports = {
  runtimeCompiler: true
}
posted @ 2020-03-12 16:30  彬在俊  阅读(135)  评论(0编辑  收藏  举报