meteor / tutorials

The Meteor tutorials from meteor.com
https://www.meteor.com/tutorials
MIT License
181 stars 103 forks source link

autopublish has to be installed for tutorial to work #190

Open sethgillett opened 5 years ago

sethgillett commented 5 years ago

Just ran into this issue on step 3 of the tutorial after following the instructions exactly - this is duplicate of #26 however that issue is closed

pieterjandesmedt commented 5 years ago

In addition, I needed to declare the tasks collection in server/main.js as well to make step 3 of the tutorial work.

import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';

Meteor.startup(() => {
    // code to run on server at startup
    const Tasks = new Mongo.Collection('tasks');
});