Vue 警告:模板编译器不可用的 Vue 仅运行时构建 [英] Vue warn : the runtime-only build of Vue where the template compiler is not available

查看:58
本文介绍了Vue 警告:模板编译器不可用的 Vue 仅运行时构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 App.vue 中测试由 Vue-Cli 环境制作的v-runtime-template"组件.

还有一些问题...

Imgur1

似乎 v-runtime-template 组件无法呈现我的 html 语法 :,(

但是,看看这个例子,这个例子完美呈现我的 html 语法
<button @click="func()">asdf</button> 不像我的 App.vue.

我只重写了App.vue并完美安装了v-runtime-template,其他文件都是vue create时的初始语句工作.

<小时>
  • 所以我想知道 v-runtime-template 在 vue-cli 环境下是不是不能工作.
  • 首先,我也想知道是什么原因.

谢谢

App.vue

这是我在 vue-cli 中使用 vue create 创建的文件