前提・実現したいこと
Ruby on Rails 5の勉強をProgateを今日やりながら始めました。
rails serverのコマンドを打つ場面で本来なら出てくるはずのリンクが出てきません。
理由はなぜだかを教えていただけると嬉しいです。
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
```ここに言語を入力 コード => Booting Puma => Rails 6.0.2.2 application starting in development => Run `rails server --help` for more startup options Exiting Traceback (most recent call last): 77: from bin/rails:3:in `<main>' 76: from bin/rails:3:in `load' 75: from /Users/ユーザー名/sample_app/bin/spring:15:in `<top (required)>' 74: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 73: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 72: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>' 71: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load' 70: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>' 69: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run' 68: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call' 67: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call' 66: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load' 65: from /Users/ユーザー名/sample_app/bin/rails:9:in `<top (required)>' 64: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require' 63: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency' 62: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require' 61: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 60: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 59: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 58: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 57: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 56: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands.rb:18:in `<main>' 55: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/command.rb:46:in `invoke' 54: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/command/base.rb:69:in `perform' 53: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch' 52: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' 51: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' 50: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `perform' 49: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:138:in `tap' 48: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:147:in `block in perform' 47: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:37:in `start' 46: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout' 45: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app' 44: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app' 43: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config' 42: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file' 41: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file' 40: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string' 39: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval' 38: from config.ru:3:in `block in <main>' 37: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:49:in `require_relative' 36: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `require' 35: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency' 34: from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:325:in `block in require' 33: from /Library/Ruby/Gems/2.6.0/gems/zeitwerk-2.3.0/lib/zeitwerk/kernel.rb:23:in `require' 32: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' 31: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' 30: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 29: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' 28: from /Library/Ruby/Gems/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' 27: from /Users/ユーザー名/sample_app/config/environment.rb:5:in `<main>' 26: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/application.rb:363:in `initialize!' 25: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:60:in `run_initializers' 24: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each' 23: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each' 22: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component' 21: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `call' 20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `each' 19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component' 18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from' 17: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' 16: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each' 15: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:61:in `block in run_initializers' 14: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `run' 13: from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.2.2/lib/rails/initializable.rb:32:in `instance_exec' 12: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/railtie.rb:84:in `block in <class:Engine>' 11: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker.rb:35:in `bootstrap' 10: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/commands.rb:25:in `bootstrap' 9: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/manifest.rb:18:in `refresh' 8: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/manifest.rb:83:in `load' 7: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:51:in `public_manifest_path' 6: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:47:in `public_output_path' 5: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:43:in `public_path' 4: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:84:in `fetch' 3: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:88:in `data' 2: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:92:in `load' 1: from /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:92:in `read' /Library/Ruby/Gems/2.6.0/gems/webpacker-4.2.2/lib/webpacker/configuration.rb:92:in `read': No such file or directory @ rb_sysopen - /Users/ユーザー名/sample_app/config/webpacker.yml (Errno::ENOENT) 76: from bin/rails:3:in `<main>' 75: from bin/rails:3:in `load' 74: from /Users/ユーザー名/sample_app/bin/spring:15:in `<top (required)>' 73: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 72: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 71: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>' 70: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load' 69: from /Library/Ruby/Gems/2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'``` ### メモ 長すぎて最後まで載せられませんでした。
回答1件
あなたの回答
tips
プレビュー