Heroku + Rails错误:“未正确锁定就进入V8 API”

|
ActionView::Template::Error (HandleScope::HandleScope: Entering the V8 API without proper locking in place
  (in /app/app/assets/javascripts/application.js)):
    3: <head>
    4: <title>Reminders</title>
    5: <%= stylesheet_link_tag    \"application\" %>
    6: <%= javascript_include_tag \"application\" %>
    7: <%= csrf_meta_tags %>
    8: <link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/stylesheets/bg_<%= current_or_guest_user.background %>.css\" />
    9: </head>  
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___1680303581718722157_49016340\'
知道是什么原因造成的吗?我是红宝石,Rails和Heroku的新手,所以我可能做错了很多事情。 如果我摆脱了javascript_include_tag,我的应用程序就会运行,但是当然我不会得到任何javascript。     
已邀请:
        ExecJS 1.1.3为V8实现了锁定。这应该可以解决您的问题,使JS缩小。 https://github.com/sstephenson/execjs/commit/a48bc7c7ad03bec4f8abde1fa76c95cccc59f818#comments     
        我通过在我的GemFile中注释了uglifier宝石来解决了这个问题。     

要回复问题请先登录注册