【发布时间】:2017-12-08 17:08:44
【问题描述】:
将Meteor + Vue integration 与服务器端渲染一起使用时,我在客户端和服务器上都收到以下警告:
您正在使用仅运行时构建的 Vue,其中模板编译器不可用。
[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.
这是什么意思,我该如何解决?包裹做错了吗?一般来说,我关注的是this example project。
【问题讨论】:
-
你检查过这个吗:vuejs.org/v2/guide/deployment.html(prod 模式)?
-
@82Tuskers 这只是处于开发模式,所以我不确定这是否相关。
-
Vue 不是要在开发模式下发出这个警告吗?
标签: javascript meteor vue.js server-side-rendering