Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Uncaught ReferenceError: Template is not defined #9

Open
chirvo opened this issue Jan 23, 2013 · 3 comments
Open

Uncaught ReferenceError: Template is not defined #9

chirvo opened this issue Jan 23, 2013 · 3 comments

Comments

@chirvo
Copy link

chirvo commented Jan 23, 2013

Uncaught ReferenceError: Template is not defined

This is the error I get using jade-handlebars when running the default application created with "mrt create anApp".

The only thing I did was rewrite the Javascript file into CoffeeScript and rewrite the HTML file into Jade.

Writing "Template" in the browser's console once the page is loaded returns "Object".

@dweldon
Copy link

dweldon commented Jan 24, 2013

I found that when using CoffeeScript, you need wrap all of your template code inside of a Meteor.startup -> function in order to avoid this problem. I think the docs should mention this or suggest an alternative.

@dweldon
Copy link

dweldon commented Jan 24, 2013

I've actually found this causes other issues. See this. Can we confirm if this is an issue with meteor or with jade-handlebars?

@tylercollier
Copy link

This helped me: #13

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants