I'm new to Ruby and Rails and encountered an error while following the Rails tutorial in chapter 3. When I try to create a new project, I see the following error:
$ rails 7.0.4 new sample_app --skip-bundle
~/.rbenv/versions/3.1.6/lib/ruby/gems/3.1.0/gems/activesupport-7.0.4/lib/active_support/logger_thread_safe_level.rb:12:in `<module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
Logger::Severity.constants.each do |severity|
^^^^^^
I noticed advice online about modifying the Gemfile to work around this issue, but since I'm creating a brand new Rails project, there is no Gemfile yet. I've also read suggestions regarding the concurrent-ruby gem, but that doesn’t seem applicable until after the project has been set up.
I'm looking for guidance on how to resolve this error so I can successfully create my project.