Hi, I was following the tutorial Simple Todos and got stuck at the 3rd step:
https://www.meteor.com/tutorials/blaze/collections
I just get blank Todo list no matter how many items I populate into MongoDB using:
meteor mongo
I tried both on Mac & Linux and get the same issue. No error, no crash, just Tasks collection is empty. All I did is just copying from the tutorial:
tasks.js
import { Mongo } from 'meteor/mongo';
export const Tasks = new Mongo.Collection('tasks');
body.js
Template.body.helpers({
tasks() {
// Show newest tasks at the top
return Tasks.find({}, { sort: { createdAt: -1 } });
},
});
Installation details:
Meteor 1.3.2.4 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
Any help is appreciated. Thank you.