Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latest EmberJS doesn't recognize latest Handlebars

When I install both the latest EmberJS (1.0.0-rc.3) and the latest Handlebars (1.0.0-rc.4), I get an error in console when I visit the page:

Uncaught Error: assertion failed: Ember Handlebars requires Handlebars 1.0.0-rc.3
or greater. Include a SCRIPT tag in the HTML HEAD linking to the Handlebars file
before you link to Ember.

I get this error whenever I do a 'vanilla' install by downloading jQuery, Handlebars and EmberJS. I also get these errors when I generate a project with Yeoman (both generator-ember and generator-charcoal). Everything is up-to-date, I've already ran

npm update -g yo generator-ember generator-charcoal grunt-cli bower

with no updates found.

Has anyone experienced this issue before, and how did you solve it?

like image 263
thomastuts Avatar asked Jan 13 '23 08:01

thomastuts


1 Answers

This will be causing a lot of problems for people who are doing this while following the NetTuts tutorials as they use Bower and/or Yeoman.

Bower currently installs the 1.0.0-rc.4 version on Handlebars even if you specify the rc.3 version. Very frustrating to any new user who's just fiddling around and going through the tutorials.

You can download the rc3 version of Handlebars by going to the link below, right clicking and saving it as a javascript file (.js): https://raw.github.com/wycats/handlebars.js/1.0.0-rc.3/dist/handlebars.js

Replace the referenced script in the html file generated by yeoman or in the example ember.js project with the one above.

like image 58
Mentioum Avatar answered Jan 21 '23 19:01

Mentioum