o2web / graphql-auth

GraphQL authentication with JWT
MIT License
26 stars 27 forks source link

rails g graphql_auth:install fails #27

Open dodecagonfd opened 4 years ago

dodecagonfd commented 4 years ago

Hi, I am trying to install graphql-auth with the following:

rails (6.0.3.2) devise (4.7.2) graphql (1.11.3) jwt (1.5.6)

When I run rails g graphql_auth:install, I face the following error:

---

_[WARNING] Could not load generator "generators/graphql_auth/install_generator". Error: undefined method sign_in_mutation' for nil:NilClass. C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/graphql-auth-0.2.2/app/graphql/types/graphql_auth.rb:6:in' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/graphql-auth-0.2.2/app/graphql/types/graphql_auth.rb:3:in <top (required)>' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:27:inrequire' .... C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands.rb:18:in <top (required)>' bin/rails:4:inrequire' bin/rails:4:in <main>' ... Could not find generator 'graphql_auth:install'. Maybe you meant "graphql:install"? Runrails generate --help` for more options._ ---#

I tried debugging with few monkey-patchings at app\graphql\types\graphql_auth.rb but got lost. Can you please help?

davidrlarochelle commented 4 years ago

+1

Same issue here!

davidpatters0n commented 3 years ago

Got the same issue here too.