graphiql-rails: uninitialized constant GraphiQL::Rails::EditorsController
Hi,
I’m getting this error when try to access to http://localhost:3000/graphiql
uninitialized constant GraphiQL::Rails::EditorsController
I’ve already installed graphql and graphiql gems
gem rails '5.1.6'
gem 'graphql', '1.7.4'
gem 'graphiql-rails', '1.4.10', group: :development
NOTE: I already try with ‘graphiql-rails’, ‘1.4.4’ and it didn’t work
The weird thing is that the classes Config Engine VERSION have been loaded by not the EditorsController.
Seems that the problem is how the gem is requiring the rails embedded app.
I really appreciate your support to fix this issue. Thanks
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (5 by maintainers)
I ran into this issue after upgrading to Rails 6. I was able to resolve it by adding
'graphiql' => 'GraphiQL'to the list of inflections for Zeitwerk.It looks right to me 😢 The backtrace, does, I mean. But why doesn’t that call to
const_getuse ActiveSupport::Dependencies :SI also bumped into this error, but only in staging environment. The reason was that I added the gem to
Gemfile’s development group.