Handlebars使用Ember rc1预编译版本错误

jef*_*lab 4 ember.js

将Ember升级到1.0.0-rc1会导致以下错误:

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).
Run Code Online (Sandbox Code Playgroud)

我正在使用根据上面的错误消息工作的车把版本:

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
Run Code Online (Sandbox Code Playgroud)

我也将我的ember-rails宝石升级为0.9.2

我该如何解决这个错误?

Jak*_*old 10

这是由barbergem使用把手rc2进行模板预编译引起的.我做了一个修复它的拉取请求.如果你现在需要这个工作,你可以使用我的叉:)

更新:使用darthdeus fork的说明:

1)将以下内容添加到您的Gemfile:

gem "barber", :git => "git://github.com/darthdeus/barber.git", :branch => "update-handlebars-to-rc3"
Run Code Online (Sandbox Code Playgroud)

2)清除你的tmp目录

rm -rf tmp
Run Code Online (Sandbox Code Playgroud)

3)重新启动服务器

编辑:对于未来的读者,现在已经合并了更改,因此使用官方仓库中的主分支应该可以正常工作.