我正在尝试将autoform包添加到我的流星项目中 . 运行“meteor add aldeed:autoform”并添加包后 - 我遇到以下错误:无法找到模块'mongo-object',无法读取未定义的属性'AutoForm',未捕获的ReferenceError:meteorInstall未定义
我甚至没有尝试使用该包 . 只是添加包导致错误 . 我正在使用Meteor 1.4.4.1
知道为什么会这样吗?我按照autoform github repo中的说明进行操作 .
installation for autoform 6说以下内容:
$ meteor add aldeed:autoform $ npm i --save simpl-schema
然后,您需要(在v . > = 6.0.0中)在SimpleSchema定义中启用autoform条目 . 这仅需要一次,例如在你的启动脚本中:
import SimpleSchema from 'simpl-schema'; SimpleSchema.extendOptions(['autoform']);
What is not 100% clear to most people, switching to af6
你需要从流星包中删除旧的aldeed:simple-schema包
您需要从已弃用的collection2切换到collection2-core
您需要注意change log,它表示不推荐使用的方法和方法名称更改 .
如果你关注所有这些变化,它应该再次运行得很好 .
Update March 2018: collection2-core 现已合并回 aldeed:collection2 ,因此请使用此软件包的最新版本 .
collection2-core
aldeed:collection2
1 回答
installation for autoform 6说以下内容:
然后,您需要(在v . > = 6.0.0中)在SimpleSchema定义中启用autoform条目 . 这仅需要一次,例如在你的启动脚本中:
What is not 100% clear to most people, switching to af6
你需要从流星包中删除旧的aldeed:simple-schema包
您需要从已弃用的collection2切换到collection2-core
您需要注意change log,它表示不推荐使用的方法和方法名称更改 .
如果你关注所有这些变化,它应该再次运行得很好 .
Update March 2018:
collection2-core
现已合并回aldeed:collection2
,因此请使用此软件包的最新版本 .