実現したいこと
Rubyのバージョンを変更した際に発生する、LoadErrorを解決したい✅
エラー文(抜粋)
`require': incompatible library version
解決法
結論から言うと、
vender/bundle/ruby/バージョン番号
以下のフォルダを全削除して、bundle install
すれば解決します!!!
エラー発生→解決まで
その1 rubyのバージョンを変更
terminal
rbenv global バージョン番号
又は、
rbenv local バージョン番号
その2 GemfileのRubyバージョンの書き換え&bundle install
Gemfile
ruby 'バージョン番号'
エラー発生:rails s
するとLoadError
が発生してしまう🤯
その3 ググってこちらの記事を発見!
vender/bundle/ruby/バージョン番号
以下のフォルダを全削除して、bundle install
解決:rails s
ができるように🎉
最後に
Rubyバージョン変更時のLoadError解決法の記事がなかったので執筆しました!
この記事が多くの悩める方に届けば幸いです🌱