手柄预编译版本错误在Ember rc5 [英] handlebar precompile version error in Ember rc5

查看:162
本文介绍了手柄预编译版本错误在Ember rc5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从rc3升级到Ember rc5,但是我收到以下错误:



未编辑的模板已预编译为旧版Handlebars版本比当前运行时。请将您的预编译器更新到较新版本(> = 1.0.0-rc.4),或将运行时降级到较旧版本(== 1.0.0-rc.3)



以下是我的gemfile中的相关行,以直接从ember -rails README (除了从git中提取宝石...它给出相同的错误,无论是否包括)

  gem'ember-rails',git:'https://github.com/emberjs/ember-rails.git'
gem'ember-source','1.0.0.rc5'
gem'handlebars-source','1.0.0.rc4'

我正在使用rails 3.2



我知道这个问题以前出现过,但我发现没有一个解决方案有所作为。没有工作的事情:




  • 删除预编译资源

  • rake tmp:clear

  • 确保我的javascrcipt加载顺序是jquery,然后是handlebars,然后ember

  • 重新启动服务器

  • 威胁编译器

  • 放弃希望并观看Buffy rerun

  • 尝试所有这些,以每一个可想象的顺序



    • 当然,简单明确的答案是最好的,但我也很高兴提供我可以自己研究的内容。我不知道从哪里开始。

      解决方案

      现在,确保您的Gemfile正在使用边缘版本:

        gem'ember-rails',:git => 'git://github.com/emberjs/ember-rails.git'
      gem'ember-source','1.0.0.rc5'
      gem'handlebars-source','1.0.0 .rc4'

      应该发布一个新版本的gem来解决问题。这解决了我的问题。


      I'm upgrading to Ember rc5 from rc3, but I'm getting 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.4) or downgrade your runtime to an older version (== 1.0.0-rc.3)

      Here are the relevant lines in my gemfile, taken straight from the ember-rails README (except pulling the gem from git... it gives the same error whether I include that or not)

      gem 'ember-rails', git: 'https://github.com/emberjs/ember-rails.git'
      gem 'ember-source', '1.0.0.rc5'
      gem 'handlebars-source', '1.0.0.rc4'
      

      I'm using rails 3.2

      I know this problem has come up before, but none of the solutions I've found have made a difference. Things that haven't worked:

      • deleting precompiled assets
      • rake tmp:clear
      • making sure my javascrcipt load order is jquery, then handlebars, then ember
      • restarting the server
      • threatening the compiler
      • giving up hope and watching Buffy reruns
      • trying all of those in conjunction, in every imaginable order

      Simple and definitive answers are best, of course, but I'd also be glad for hints on what I can study to figure this out on my own. I don't know where to start.

      解决方案

      For now, ensure your Gemfile is using the edge version:

      gem 'ember-rails', :git => 'git://github.com/emberjs/ember-rails.git'
      gem 'ember-source', '1.0.0.rc5'
      gem 'handlebars-source', '1.0.0.rc4'
      

      A new version of the gem should be released to resolve the issue soon. This fixed the problem for me.

      这篇关于手柄预编译版本错误在Ember rc5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆