“rake aborted! stack level too deep” while deploying to Heroku

后端 未结 3 1623
不知归路
不知归路 2021-02-02 13:52

My website used to be working and Heroku precompiled the assets and everything. Now, seemingly out of nowhere, I started to get this message on deploy:

Preparing         


        
相关标签:
3条回答
  • 2021-02-02 13:55

    For ruby 2.3.0 or lower versions are having the following line in application.rb file for Rails. But 2.4.0 or higher have implemented those as automated.

    Bundler.require(*Rails.groups)

    Changing the ruby version to 2.3.0 did the trick. This one saved my day.

    0 讨论(0)
  • 2021-02-02 13:58

    upgrading to sass v3.2.12 did the trick for me

    but overall, it looks like the issue is fixed on all current versions, just do a bundle update and you should be good.

    0 讨论(0)
  • 2021-02-02 14:03

    I was truly desperate so I asked another question. Apparently this is caused by sass and downgrading to sass-rails v3.1.4 v3.2.5 will make it work.

    0 讨论(0)
提交回复
热议问题