heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.89k stars 5.54k forks source link

uninitialized constant Devise::SessionsController #5582

Closed arslbbt closed 1 year ago

arslbbt commented 1 year ago

Environment

Current behavior

I have rails application that was built on ruby 2.7.1, rails 5.2, devise 4.7.2, and activeadmin 2.9.0. i want to update it to the current versions. when i update the ruby to 3.2.1, rails to 7.0, devise to 4.9.2, and activeadmin to 2.13, i got the uninitialized constant Devise::SessionsController in gem lib file .rvm/gems/ruby-3.2.1/gems/activeadmin-2.13.1/lib/active_admin/devise.rb:54:in <module:Devise>': uninitialized constant Devise::SessionsController (NameError)

Expected behavior

Evertyting need to be work wihout error

carlosantoniodasilva commented 1 year ago

I'd recommend doing smaller upgrades and not going all at once to the latest. You could for example upgrade Devise without upgrading everything else first.

It sounds like this error is coming from active admin though, not Devise, so I'd recommend reporting there. If you can provide a sample app showing the error I'd be happy to try looking into it more, otherwise there's not much else I can do without additional info, stack traces, and/or a sample app.