Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/40.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

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
Node.js 流星“;模板帮助程序中的异常:quickFormContext“;与aldeed一起:自动成型_Node.js_Meteor_Meteor Autoform - Fatal编程技术网

Node.js 流星“;模板帮助程序中的异常:quickFormContext“;与aldeed一起:自动成型

Node.js 流星“;模板帮助程序中的异常:quickFormContext“;与aldeed一起:自动成型,node.js,meteor,meteor-autoform,Node.js,Meteor,Meteor Autoform,我遇到了一个无法解决的问题,也不知道原因是什么。 模板: <template name="home"> {{> quickForm collection="Posts" id="insertPostForm" type="insert"}} </template> 我还出版了“allPostHeaders”: 因此,在Meteor中,我安装了iron:router,aldeed:collection2和aldeed:autoform以及install和np

我遇到了一个无法解决的问题,也不知道原因是什么。 模板:

<template name="home">
    {{> quickForm collection="Posts" id="insertPostForm" type="insert"}}
</template>
我还出版了“allPostHeaders”:

因此,在Meteor中,我安装了
iron:router
aldeed:collection2
aldeed:autoform
以及
install
npm Simple schema

因此,当我启动我的应用程序时,会出现以下异常

模板帮助程序中的异常: quickFormContext@

我发现了,但我不会忘记我的报价。。所以有人能帮我找到我错过的东西吗?

我解决了


问题是由安装引起的。使用autoform 6+(autoform的最新版本),我们无法安装aldeed:collection2,但aldeed:collection2核心用于单独安装简单架构。

如果您在html中注释掉quickform行,它可以工作吗?如果模板中没有quickform行,它就可以工作了。为什么
npm安装简单模式而不是使用?因为安装aldeed:autoform指定了这一点。明天我会带着流星套装试试。Thks
Router.route('/', {
    name: "home",
    data: function () {
        return {
            posts: Posts.find();
        };
    },
    waitOn: function () {
        return Meteor.subscribe("allPostHeaders");
    }
});
Meteor.publish("allPostHeaders", function(){
    return Posts.find({}, {
        fields: {content: 0}
    });
});