devise-jwt icon indicating copy to clipboard operation
devise-jwt copied to clipboard

Desive JWT import in application.rb throwing is error

Open farooqch11 opened this issue 2 years ago • 2 comments

NoMethodError: undefined method `call' for {:default=>#<Dry::Container::Registry:0x0000000106decfe0 @_mutex=#<Thread::Mutex:0x0000000106decd88>>}:Hash

        config.registry.call(_container, key, item, options)
                       ^^^^^

farooqch11 avatar Mar 14 '23 16:03 farooqch11

if we dont import rails 7 throws this error

rails aborted!
NoMethodError: undefined method `call' for {:default=>#<Dry::Container::Registry:0x00000001141a02b0 @_mutex=#<Thread::Mutex:0x00000001141a0238>>}:Hash

        config.registry.call(_container, key, item, options)
                       ^^^^^
/Users/macbookpro/Desktop/development/dashboard/config/application.rb:11:in `<top (required)>'
/Users/macbookpro/Desktop/development/dashboard/Rakefile:4:in `require'
/Users/macbookpro/Desktop/development/dashboard/Rakefile:4:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'

Caused by:
LoadError: cannot load such file -- devise-jwt
/Users/macbookpro/Desktop/development/dashboard/config/application.rb:11:in `<top (required)>'
/Users/macbookpro/Desktop/development/dashboard/Rakefile:4:in `require'
/Users/macbookpro/Desktop/development/dashboard/Rakefile:4:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)

farooqch11 avatar Mar 14 '23 16:03 farooqch11

Thanks for reporting and sorry for the late reply. I'll take a look into it as soon as possible. In the meantime, any help is appreciated!

waiting-for-dev avatar Apr 11 '23 13:04 waiting-for-dev

I'm closing it as nobody else reported it in a long time, so I don't think there's any issue with Rails 7 compatibility. Please, provide a reproducing repo if still an issue 🙏

waiting-for-dev avatar Jul 10 '24 14:07 waiting-for-dev