Manual pen precompiles version error with Ember rc1

Updating Ember to 1.0.0-rc1 results in the following error:

Uncaught Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 1.0.0-rc.3) or downgrade your runtime to an older version (<= 1.0.rc.2). 

I am using a rudder version that should work according to the error message above:

 DEBUG: Ember.VERSION : 1.0.0-rc.1 ember.js:339 DEBUG: Handlebars.VERSION : 1.0.0-rc.3 ember.js:339 DEBUG: jQuery.VERSION : 1.9.1 

I also upgraded my ember-rails 0.9.2 to 0.9.2

How to get around this error?

+4
source share
1 answer

This is caused by the barber gem, which uses rc2 tools to precompile the template. I made a transfer request that fixes it. If you need it now, you can just use my plug :)

Update: instructions for using the darthdeus plug:

1) Add the following to your Gemfile:

 gem "barber", :git => "git://github.com/darthdeus/barber.git", :branch => "update-handlebars-to-rc3" 

2) Clean your tmp dir

 rm -rf tmp 

3) Reboot the server

edit: for future readers, now the changes have been merged, so using the master branch from the official repo should work.

+10
source

All Articles