Skip to content

assertion failed: Ember Handlebars requires Handlebars 1.0.0-rc.3 or greater #2288

Closed
harshulj opened this Issue Mar 17, 2013 · 10 comments

7 participants

@harshulj

I am using Ember Version: v1.0.0-rc.1-188-gb6bb967 and Handlebars Version: "1.0.0-rc.3".
When I use Include these two files I get "Uncaught Error: assertion failed: Ember Handlebars requires Handlebars 1.0.0-rc.3 or greater " in console.

@intuitivepixel

can you provide a jsfiddle that show's the reproduces the error?

@harshulj

Here's the link.
http://jsfiddle.net/harshulj/w9WB5/
After the page has loaded use "Inspect Element" option in chrome to see the error message in console.

@intuitivepixel

Since ember has handlebars as dependency, handlebars must be loaded first. Try to swap the order in wich you are loading, e.g.
1. jquery
2. handlebars
3. ember
in this order there is no problem.

@harshulj

That is correct. Thank You. I should have realized that.

@harshulj harshulj closed this Mar 17, 2013
@Codii
Codii commented May 23, 2013

I still face this this issue using HandleBars 1.0.0-rc.4 with Ember 1.0.0-rc.3.
Just noticed that the assertion failed because it is evaluating :
Handlebars && Handlebars.COMPILER_REVISION === 2
Whereas this value is at 3 on the version of HandleBars I mentioned.
I don't know what this parameter is about, so it may not be an issue ...

@stefanpenner
Ember.js member

@Codii it would seem the template compiler is still compiling with an older handlebars.

can you describe your stack a bit more, maybe that will help shed some light.

@Codii
Codii commented May 24, 2013

Using the very last versions of jQuery + HandleBars + EmberJS
http://jsfiddle.net/codii/3gnTK/

@mmuthuraj

I have the same problem. I also using the latest jquery, handlebars and ember files.

@intuitivepixel @stefanpenner : any solution??

@knownasilya

Installing with bower will get you the latest version of handlebars, which means it's rc.4 and Ember crashes. If the compiler isn't supported, then the assert message needs to be updated.

@karmi
karmi commented May 25, 2013

This is fixed in master @6a8b054, source: 6a8b054#diff-3.

@knownasilya knownasilya referenced this issue in fernandogmar/Emberjs-RequireJS May 26, 2013
Closed

Ember cannot find Handlebars #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.