Open dodecagonfd opened 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._ ---#
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
<top (required)>' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:27:in
<top (required)>' bin/rails:4:in
<main>' ... Could not find generator 'graphql_auth:install'. Maybe you meant "graphql:install"? Run
I tried debugging with few monkey-patchings at app\graphql\types\graphql_auth.rb but got lost. Can you please help?
+1
Same issue here!
Got the same issue here too.
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'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/graphql-auth-0.2.2/app/graphql/types/graphql_auth.rb:3:in
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
<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?