首页 > 技术文章 > 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.

danmao 2019-08-25 22:36 原文

异常

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.config.js 中

module.exports={
runtimeCompiler:true
}

推荐阅读