-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOLVED: Work with API only app #53
Comments
Update: Figured this out myself. The only thing necessary (rails 5.2.0) is to add the following lines to
Closing. But it might be nice to add it to the readme! |
Glad you found a solution, and thanks for sharing it! Feel free to open a PR to the readme if you're interested. |
If you're experiencing the error:
With Rails 6/Sprockets 4, downgrade to Sprockets 3 by adding this to your
And running |
People starting new projects with Rails 6 in API mode will encounter issue @Li357 has pointed out. Thanks for the solution! |
Thanks @Li357! |
For anyone getting this error, because your Rails app is API-only: It also can be done manually, by adding
to your Gemfile and
to |
Thanks @Li357! |
You don't need to downgrade sprocket, just add a manifest.js file and it'll work: |
FYI, if you don't want to run on a lower
|
With the latest Rails version (and more specifically, an updated Sprockets version) there is additional steps required to properly mount GraphiQL. See rmosolgo#53 (comment).
Can you explain why you picked this?
|
With the latest Rails version (and more specifically, an updated Sprockets version) there is additional steps required to properly mount GraphiQL. See rmosolgo/graphiql-rails#53 (comment).
I'm encountering this issue #42 and I believe that the problem is due to using a rails 5 api only app.
Tried following these instructions #13 (comment) but they appear to be outdated.
Is there any way to make this gem work with an API app?
The text was updated successfully, but these errors were encountered: