报错信息:

vue.runtime.esm.js?2b0e:619 [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.

vue 组件使用template 选项 报错

解决办法:

新建vue.config.js

// vue.config.js
module.exports = {

    runtimeCompiler: true,
}

重启server并重新刷新页面

相关解释:

https://cli.vuejs.org/zh/config/#runtimecompiler

相关文章:

  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2021-04-11
  • 2022-12-23
  • 2021-05-14
  • 2021-04-29
相关资源
相似解决方案