metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heroku deploy failing with therubyracer dependency

naobit opened this issue · comments

Hey all, I upgraded my Rails app to 6.1 and Ruby 2.7.1 and I am using less-rails version 5.0. Everything is working fine locally, but when I try to push my app to heroku, I am seeing this error:

       An error occurred while installing libv8 (3.16.14.19), and Bundler cannot
       continue.
       
       In Gemfile:
         therubyracer was resolved to 0.12.3, which depends on
           libv8
 !
 !     Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

And, the error happens because less-rails depends on therubyracer gem. I am wondering if anyone has any thoughts about fixing this heroku deploy issues. Or, is there any other way I can use less-rails but without using therubyracer gem e.g. mini_racer gem.

@simi Could you please guide me to the right direction here? Thank you.

I am having similar problem, but when upgrading to ruby 3.1
its now impossible to install therubyracer

we need to install mini_racer, which I am not sure less-rails is compatible with...