1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Rails】エラー「uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)」の解消

Last updated at Posted at 2025-03-11

記事概要

Railsの新規アプリ作成時に発生するエラーuninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)を解消する方法について、記述する。

事象

  1. Railsの新規アプリを作成するために、rails _7.0.0_ new [アプリ名] -d mysqlを実行
  2. 下記エラーにより、新規アプリが作成されない
    uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)
    

エラー原因

コマンドで指定したバージョンが古いため

エラー解消方法

  1. バージョンを指定せず、下記コマンドでRailsを新規作成する
    rails new [アプリ名] -d mysql
    
  2. コマンドが正常に実行され、最新バージョンのRailsアプリが作成される

参照した記事

1
2
0

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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?