vue全局组件注册后报错

2020-03-19  本文已影响0人  你猜_19ca
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-cli3.0解决办法:
在vue.config.js中增加如下内容,重启即可:

module.exports = {
  runtimeCompiler: true,
}
上一篇 下一篇

猜你喜欢

热点阅读