Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heroku deploy failing with therubyracer dependency #160

Open
naobit opened this issue Feb 11, 2022 · 1 comment
Open

heroku deploy failing with therubyracer dependency #160

naobit opened this issue Feb 11, 2022 · 1 comment

Comments

@naobit
Copy link

naobit commented Feb 11, 2022

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.

@mathieujobin
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants