流星 "Exception in template helper: quickFormContext" 与 aldeed:autoform

Meteor "Exception in template helper: quickFormContext" with aldeed:autoform

我遇到了 aldeed:autoform 的问题,我无法解决,也不明白是什么原因。 模板:

<template name="home">
    {{> quickForm collection="Posts" id="insertPostForm" type="insert"}}
</template>

路线(铁:路由器):

Router.route('/', {
    name: "home",
    data: function () {
        return {
            posts: Posts.find();
        };
    },
    waitOn: function () {
        return Meteor.subscribe("allPostHeaders");
    }
});

然后我发布了 "allPostHeaders" :

Meteor.publish("allPostHeaders", function(){
    return Posts.find({}, {
        fields: {content: 0}
    });
});

所以在 Meteor 中我安装了 iron:routeraldeed:collection2aldeed:autoform 以及 installnpm simpl-schema

所以当我启动我的应用程序时出现以下异常..

Exception in template helper: quickFormContext@http://localhost:3000/packages/aldeed_autoform.js

我找到了 但我没有忘记我的报价..所以有人可以帮我找到我错过的东西吗?

我解决了

问题出在安装上。使用 autoform 6+(最新版本的 autoform)我们无法安装 aldeed:collection2 但 aldeed:collection2-core 用于单独安装 simple-schema。