前提・実現したいこと
お世話になります。よろしくお願いいたします。
本件は3日程度、自分なりに対応をしましたがどうしても解決しないので知恵を頂けたら幸いです。
ruby on railsでwebサービスを作成中です。
rails s時にエラー発生しました。(rails cも同様)
きっかけは定かではないのですが(前日の最後まで問題なかったはず)、考えられるとすれば
・vendor内のフォルダ/ファイル(js/css/image)を削除した
・assetsのpathを追記した(rails cに入れないので現在、確認できない)
どうにかエラーを改善したいです。。。
発生している問題・エラーメッセージ
/usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/active_support.rb:53:in block in load_missing_constant': uninitialized constant Rails::Applications (NameError) from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in
without_bootsnap_cache'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/active_support.rb:53:in rescue in load_missing_constant' from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/active_support.rb:43:in
load_missing_constant'
from /home/ec2-user/environment/config/application.rb:10:in <module:Environment>' from /home/ec2-user/environment/config/application.rb:9:in
<main>'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require' from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
block in require_with_bootsnap_lfi'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in
require_with_bootsnap_lfi'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:145:in
block in perform'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in tap' from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/commands/server/server_command.rb:142:in
perform'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/command.rb:27:in run' from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in
invoke_command'
from /usr/local/rvm/rubies/ruby-2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/command/base.rb:65:in
perform'
from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/command.rb:46:in invoke' from /usr/local/rvm/gems/ruby-2.4.1/gems/railties-5.2.1/lib/rails/commands.rb:18:in
<main>'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require' from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
block in require_with_bootsnap_lfi'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in register' from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in
require_with_bootsnap_lfi'
from /usr/local/rvm/gems/ruby-2.4.1/bundler/gems/bootsnap-4c2ec2b252c7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in require' from /home/ec2-user/environment/bin/rails:9:in
<top (required)>'
from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in load' from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in
call'
from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call' from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client.rb:30:in
run'
from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/bin/spring:49:in <top (required)>' from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in
load'
from /usr/local/rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in <top (required)>' from /home/ec2-user/environment/bin/spring:15:in
require'
from /home/ec2-user/environment/bin/spring:15:in <top (required)>' from bin/rails:3:in
load'
from bin/rails:3:in `<main>'
### 試したこと gemの再インストール gem "bootsnap", github: "Shopify/bootsnap"の記述変更 ### 補足情報(FW/ツールのバージョンなど) ruby '2.4.1' gem 'rails', '~> 5.2.0' gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec" 何卒よろしくお願いいたします。
あなたの回答
tips
プレビュー