タイトルの通りです。
rails s
を実行すると以下のエラーが出ます。
You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined). This is probably because you generated binstubs with Spring 1.0, and you now have a Spring version > 1.0 on your system. To solve this, upgrade your bundle to the latest Spring version and then run `bundle exec spring binstub --all` to regenerate your binstubs. This is a one-time step necessary to upgrade from 1.0 to 1.1. Here's the backtrace: /Users/hoge/kaito_app/vendor/bundle/ruby/2.7.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load' /Users/hoge/kaito_app/vendor/bundle/ruby/2.7.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>' /Users/hoge/.rbenv/versions/2.7.0/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require' /Users/hoge/.rbenv/versions/2.7.0/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require' /Users/hoge/hoge_app/bin/spring:15:in `<top (required)>' bin/rails:4:in `load' bin/rails:4:in `<main>'
ググってもあまり同じようなエラーがある人がいないのと参考にしたwebサイト通りやっても解決しなかったのでここで質問させていただきます。
やったこと
bundle update
bundle exec spring binstub rspec
bundle exec spring binstub --all
あなたの回答
tips
プレビュー