0
0

More than 1 year has passed since last update.

undefined method `mechanism=' for ActiveSupport::Dependencies:Moduleを解決した話。(Mac rails consoleが起動できない編)

Posted at

環境

OS: Mac
SHELL: zsh
rails: 7.0.3

undefined method `mechanism=' ...が出た!

rails consoleを立ち上げようとしたら、掲題のエラーが発生した。

上記の記事にならって、下記のgemを削除する。'spring'gemは元々入れていたためそのまま。

gem 'spring-watcher-listen'   # 削除

解決した

再びrails consoleを立ち上げる。

$ rails c
Running via Spring preloader in process 45130
Loading development environment (Rails 7.0.3)
irb(main):001:0> 

立った。。。。!
どうも、railsのバージョンが7.*になると発生するエラーぽいので、ダウングレードさせても解決するのかも。
以上

0
0
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
0
0