Dealing with NameError: uninitialized constant :: Analyzable error when installing Active Storage in Rails6

error contents

NameError: uninitialized constant #<Class:0x0000000000000000>::Analyzable
from /bundle/ruby/2.7.0/gems/activestorage-6.0.3.3/app/models/active_storage/blob.rb:26:in `<class:Blob>'

The environment in which it occurred

Coping

https://railsguides.jp/upgrading_ruby_on_rails.html#rails-6でclassicモードのオートローダーを使う方法

# config/environments/development.rb

config.autoloader = :classic

Related Issue

https://github.com/rails/rails/issues/38681

Recommended Posts

Dealing with NameError: uninitialized constant :: Analyzable error when installing Active Storage in Rails6
[Rails] Error resolution when generating tokens with PAYJP
Error in bundle install when running rails new
[Rails] Solution when migration error occurs in acts-as-taggable-on
[Rails] Show avatars in posts using Active Storage
Uninitialized constant ~~ error
Error when installing pygame (Command "python setup.py egg_info" failed with error code 1 in / tmp / pip-build-yovQQX / pygame /)
Rails uninitialized constant A simple checklist for error resolution
[Rails] About error resolution when installing devise and activeadmin
Error encountered with notes when deploying docker on rails
[Runy On Rails] Active Hash Error NameError in Controller ActiveHash Did you mean? ActiveStorage): Solution
exited with code 1 error resolution with docker-compose up in rails environment
[Rails] Create API to download files with Active Storage [S3]
Things to keep in mind when using Sidekiq with Rails