Blaze Tutorial: Collection Problem


Hi! I’m stucked at 3rd step of Todo Tutorial. The task that I created through terminal is not showing in the page. TIA!
Meteor version is

meteor:PRIMARY> db.tasks.insert({text: "Hello world!", createdAt: new Date() });
WriteResult({ "nInserted" : 1 })
meteor:PRIMARY> db.tasks.find();
{ "_id" : ObjectId("5807de6be7ce83beeb2bb0dd"), "text" : "Hello world!", "createdAt" : ISODate("2016-10-19T20:58:19.130Z") }
// body.js
import { Template } from 'meteor/templating';
import { Tasks } from '../api/tasks.js';
import './body.html';
  tasks() {
    return Tasks.find({});
// main.js
import '../imports/ui/body.js';
import '../imports/api/tasks.js';
// tasks.js
import { Mongo } from 'meteor/mongo';
export const Tasks = new Mongo.Collection('tasks');
<!-- body.html -->
  <div class="container">
      <h1>Todo List</h1>

      {{#each tasks}}
        {{> task}}

<template name="task">


Solved. I overlooked which main.js file to put

import '../imports/api/tasks.js';