Javascript Meteor+Vue仅运行时版本
在服务器端渲染中使用时,我在客户端和服务器上都收到以下警告: 在模板编译器不可用的情况下,您使用的是仅运行时版本的VueJavascript Meteor+Vue仅运行时版本,javascript,meteor,vue.js,server-side-rendering,Javascript,Meteor,Vue.js,Server Side Rendering,在服务器端渲染中使用时,我在客户端和服务器上都收到以下警告: 在模板编译器不可用的情况下,您使用的是仅运行时版本的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 bu
[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模板。Vue错误地将此解释为模板编译器工作不正常。在home.vue文件中放入一些简单代码(如以下代码)可以修复此问题:
<template>
<p>foo</p>
</template>
你检查过这个:prod模式吗?@82Tuskers这只是在开发模式下,所以我不确定这是否相关。Vue不是要在开发模式下发出警告吗?我发现这个很有用: