J'ai installé mon runtime JS en tant que nœud et j'ai mis à jour et édité le bundle, mais j'obtiens toujours cette erreur:
/Users/macbook/Documents/Studies/Coding/the_back_end/the_odin_project/odin_on_Rails/hello_app/config/boot.rb:4:in `require': cannot load such file -- bootsnap/setup (LoadError)
from /Users/macbook/Documents/Studies/Coding/the_back_end/the_odin_project/odin_on_Rails/hello_app/config/boot.rb:4:in `<top (required)>'
from /Users/macbook/Documents/Studies/Coding/the_back_end/the_odin_project/odin_on_Rails/hello_app/bin/Rails:8:in `require_relative'
from /Users/macbook/Documents/Studies/Coding/the_back_end/the_odin_project/odin_on_Rails/hello_app/bin/Rails:8:in `<top (required)>'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/lib/spring/client/Rails.rb:28:in `load'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/lib/spring/client/Rails.rb:28:in `call'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /Users/macbook/.rvm/gems/Ruby-2.3.4/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /Users/macbook/Documents/Studies/Coding/the_back_end/the_odin_project/odin_on_Rails/hello_app/bin/spring:15:in `require'
from /Users/macbook/Documents/Studies/Coding/the_back_end/the_odin_project/odin_on_Rails/hello_app/bin/spring:15:in `<top (required)>'
from bin/Rails:3:in `load'
from bin/Rails:3:in `<main>'
Voici ce qu'il y a dans mon Gemfile,
source 'https://rubygems.org'
gem 'Rails', '5.1.4'
gem 'puma', '3.9.1'
gem 'sass-Rails', '5.0.6'
gem 'uglifier', '3.2.0'
gem 'coffee-Rails', '4.2.2'
gem 'jquery-Rails', '4.3.1'
gem 'turbolinks', '5.0.1'
gem 'jbuilder', '2.7.0'
group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end
group :development do
gem 'web-console', '3.5.1'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Je me sens un peu perdu sur ce point, et je ne trouve aucune réponse utile nulle part.
Merci beaucoup d'avance!
Vous avez un problème avec la gemme bootsnap
dont la tâche principale est d'accélérer Rails heure de démarrage.
Donc, vous devez soit:
bootsnap
, ajoutez gem 'bootsnap'
à votre gemfile pour l'installer.bootsnap
, supprimez la ligne require 'bootsnap/setup'
dans config/boot.rb
Plus d'informations sur bootsnap
: https://github.com/Shopify/bootsnap#how-does-this-work