Skip to content

rails g graphql_auth:install fails  #27

@dodecagonfd

Description

@dodecagonfd

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 module:GraphqlAuth'
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:in require'
....
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:in require'
bin/rails:4:in <main>' ... Could not find generator 'graphql_auth:install'. Maybe you meant "graphql:install"? Run rails 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions