Replace Collection2 by aldeed:collection2-core.
Add in the dependency: session, bcrypt, aldeed:autoform and meteor npm i --save simpl-schema
Change the code from the collection example:
import SimpleSchema from 'simpl-schema';
SimpleSchema.extendOptions(['autoform']);
Schemas = {};
Posts = new Meteor.Collection('posts');
Schemas.Posts = new SimpleSchema({
title: {
type: String,
max: 60
},
content: {
...
Replace
Collection2byaldeed:collection2-core.Add in the dependency:
session,bcrypt,aldeed:autoformandmeteor npm i --save simpl-schemaChange the code from the collection example: