Meteor - errors after adding autoform package

穿精又带淫゛_ 提交于 2019-12-06 12:28:57

The installation for autoform 6 says the following:

$ meteor add aldeed:autoform
$ npm i --save simpl-schema

Then you need (in v. >=6.0.0) to enable the use of autoform entries in SimpleSchema definitions. This is just required once, e.g. in your startup scripts:

import SimpleSchema from 'simpl-schema';
SimpleSchema.extendOptions(['autoform']);

What is not 100% clear to most people, switching to af6

  1. you need to remove the old aldeed:simple-schema package from the meteor packages
  2. you need to switch from the deprecated collection2 to collection2-core
  3. you need to be aware of the change log, which indicates deprecated method and method name changes.

If you concern all of these changes it should run really fine again.

Update March 2018: collection2-core is now merged back to aldeed:collection2 so use the latest version of this package.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!