Help loading the templates?


#1

After i did step 2 of the tutorial i reloaded http://localhost:3000/. The page is now completely blank and nothing is loading, apart from the header.

Something confused me about the tutorial - part of it had to do with setting up some files in the imports/ui/ folder, but that folder was missing. So i created the directory and put the files there. Apart from that i followed all the instructions.

I checked what the console was saying and i found this:
=> Your application has errors. Waiting for file change.
=> Modified – restarting.
=> Errors prevented startup:

_ While processing files with ecmascript (for target web.browser):_
_ client/main.js:1:45: Bad character escape sequence (1:45)_

This is what main.js contains:
import '../imports/ui/body.js';

What am i missing?


#2

Did you add the ecmascript package? If I remove that package from my test project, I see the exact same problem.


#3

There’s no mention of that in the tutorial?! How do i add it?

Edit: This is my file structure


#4

meteor add ecmascript


#5

after i ran the command you posted in the “simple-todos” folder (which my main directory) i got this message:

Currently using ecmascript with version constraint 0.5.9.
The version constraint will be removed.

ecmascript: Compiler plugin that supports ES2015+ in all .js files

Does that mean that ecmascript was already installed and running? Here is a dropbox link with my folder and all its files.