Todo app does not work, cannot find module './main.html';


#1

Hi,

if i try the todos app, I get this error
install.js:78Uncaught Error: Cannot find module './main.html'require @ install.js:78meteorInstall.client.main.js @ main.js:3fileEvaluate @ install.js:141require @ install.js:75(anonymous function) @ app.js?hash=f4471e5…:106

if I comment this out in the main.js I get this error

3debug.js:41 Exception in queued task: Error: Expected template or null, found: [object Object]
    at ._render (http://localhost:3000/packages/spacebars.js?hash=65db8b6a8e3fca189b416de702967b1cb83d57d5:61:13)
    at doRender (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:2027:25)
    at http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:1875:20
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:3687:12)
    at http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:1873:29
    at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:2214:12)
    at viewAutorun (http://localhost:3000/packages/blaze.js?hash=ef41aed769a8945fc99ac4954e8c9ec157a88cea:1872:18)
    at Tracker.Computation._compute (http://localhost:3000/packages/tracker.js?hash=6f5d0f5486aaa54b0abe636174eeb06dcc2a736b:351:36)
    at new Tracker.Computation (http://localhost:3000/packages/tracker.js?hash=6f5d0f5486aaa54b0abe636174eeb06dcc2a736b:239:10)
    at Object.Tracker.autorun (http://localhost:3000/packages/tracker.js?hash=6f5d0f5486aaa54b0abe636174eeb06dcc2a736b:590:11)

This gives me really no clue what is happening… So does anyone have an idea how we can debug 1.3?

Thanks…


#2

So debugging is very hard with the modules I think. so I redid the manual… and off course it is RTM

for others:
I forgot to remove the content in main.js

import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
import  './main.html';
import '../imports/ui/body.js';

was still there

replace by

import '../imports/ui/body.js';


#3

This helped me fix the error.
Thanks


#4

Could also be related to:

Either rollback your version to 1.4.1.3 or restart your server.