vue报错[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not avai
vue-cli 3
使用 vue create app 创建的项目
[Vue warn]: 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.
(found in <Root>)
在根目录中添加一个vue.config.js, 里面写上
module.exports = {
runtimeCompiler: true
}
还没有评论,来说两句吧...