1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

エラー(未解決) uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

Posted at

はじめに

新アプリ作成の為まずターミナルで
rails 7.0.0 new "アプリ名" -d mysql
を行い

config/database.yml
 encoding: utf8

にしてbundle install、rails db:createしたら以下エラーが出ました。

uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

    Logger::Severity.constants.each do |severity|

ラーの原因は、Logger::Severity の定数が解決できないとのことで、この問題はRubyやRailsのバージョンの組み合わせが原因で発生することがあるそうなのですが
Railsのバージョンを最新に変えても、Bootsnapを無効化しても、Railsバージョンをgemfileで固定しても
全くrails serverもreils db:createもしてくれません。

おわりに

色々自分なりに調べて進めてみます。

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?