You are using the runtime-only build of Vue where the template compiler is not available. Either pre...

记录一次Vue 错误

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文件夹,加上如下代码即可。vue cli 3.10.0
  • module.exports = {
      runtimeCompiler: true
    }
    

posted @ 2022-11-10 19:27  彬在俊  阅读(132)  评论(0编辑  收藏  举报