waiting-for-dev / devise-jwt

JWT token authentication with devise and rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Desive JWT import in application.rb throwing is error

farooqch11 opened this issue · comments

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

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

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)

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!