I just created a rails project, modified the Gemfile to add gem 'javascript', '~> 0.1.0' and then used bundle install to install the gems and it gives me the following error:
The version of rails I use is 7.0.2.3 and the bootsnap gem is gem "bootsnap", require: false.
In the boot.rb add the following line
unless (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
after
require "bootsnap/setup"
and now the message is different:
binding_of_caller
it is compatible with ruby 3 since version 1.0 , so update it with: