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}
});
});