Closed AryeShemesh closed 7 months ago
It works on Ruby 3.0.x, however it doesn't work on Ruby 3.1.x. I'm using it with Ruby 3.0.4
@VelizarHristov Ok thanks. Currently using ruby
3.0.5 and it seems to work well. I will wait to upgrade to ruby
3.2.0.
I don't expect it to work on Ruby 3.2 or later. It seems like this is not a bug that they're going to fix, but rather they removed something and now therubyracer needs to be updated to be compatible, however therubyracer is no longer maintaned so I don't think it will ever be compatible.
I found that my app worked just fine without therubyracer. It's possible that you might need to install Node.js on the computer, though.
I had the same issue, I uninstalled psych >= 5 and I was able to install therubyracer
gem uninstall psych 5.0.1
gem install therubyracer
This worked fine for me on ruby 3.0.5. But as soon as I upgraded ruby to 3.2.1 and ran bundle install
, I ran into that same stacktrace as OP. therubyracer
is unmaintained and it's recommended to use mini_racer
now. So I removed therubyracer
from my gemfile and added mini_racer
since the issue was resolved in mini_racer
. Well technically, the issue was resolved in libv8-node
version 6.10.0.0
I believe according to this message. I'm not sure which version of mini_racer
started making use of libv8-node
version 6.10.0.0
but I'm using version 0.6.3
for mini_racer
and no longer facing the issue! 🎉
Exceptionally, fixed here.
That said the project is unmaintained and this will be the last one.
Hi,
I'm trying to upgrade a Ruby on Rails app from 2.x to 3.x.
While running
bundle install
I got the following error:As far as I understand, this is the same as this mini racer issue:
Ruby 3 uses Psych 4.x to parse Yaml files, and the libv8 version required by therubyracer (~> 3.16.14.15) did not fix this issue yet. So for the rubyracer to support Ruby 3.x it seems to need to update it's libv8 dependecy version.
If so, is there a plan to do so and support Ruby 3.x?