Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Meteor+Vue仅运行时版本_Javascript_Meteor_Vue.js_Server Side Rendering - Fatal编程技术网

Javascript Meteor+Vue仅运行时版本

Javascript 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

[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不是要在开发模式下发出警告吗?我发现这个很有用: