-
Notifications
You must be signed in to change notification settings - Fork 137
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
GraphiQL broken in production. Duplicate "graphql" modules. #58
Comments
I'm also having this issue. The error is not occurring in development, only in production.
|
Having the same issue, staging env, not production, but similar as in not a development env.
|
We also started having this issue in our staging environment once we upgraded to:
|
Same problem, using these gems:
|
Same issue here:
|
I have this issue, but it's in development.
Works with |
|
@leechunhoe you need to update your production environment and set your js_compressor like this:
Don't forget to Concerning the Topic: |
Forgive my ignorance but will updating to production React fix this issue? |
No this fixes only the issue @leechunhoe posted |
Ah no problem i only read the notification mail which did not include the link ^^ |
Thank you @mortik, the errors fixed. Though graphiql still won't load on production. |
yeah sadly still need to set 'graphiql-rails', '~> 1.4.11' |
|
hmm upgraded to 1.7 did not change the error for me. |
Yes, disregard, it was just a slow propagation issue. Sorry if anyone deployed. Back to |
Is everyone with this issue running production on Google Cloud Platform? |
The update did not fix my issue either, but I'm not sure if |
Still not fixed (not on GCP):
|
Just Worked with the old version 😭 :
|
for me same issue
|
The same issue has occurred on Heroku.
|
GraphiQL web UI is not working on staging/production. Downgrading should fix this. rmosolgo/graphiql-rails#58
This has been happening since Nov 2018. Is there a plan to fix this in the future? Anything we can do to help? |
We removed graphiql-rails from our Apps and are now using a html only version of the GraphiQL Playground from Prisma https://github.com/prisma/graphql-playground The next step would be to use the React Component to build a customized Playground with Subscription support like you would get when you use Apollo Server or Absinthe from Elixir but in this case for Rails with ActionCable |
I am seeing the same issue. Anyone have a fix? |
In my case, the issue involved Uglifier mangling variables in the javascript file. The following settings appear to work: config.assets.js_compressor = Uglifier.new(harmony: true, mangle: false) Make sure to update Uglifier to a version that supports the |
I'm experiencing this issue on Heroku and have been able to duplicate locally in production mode. Using Is there a long term fix in the works? |
We just came across this in GitLab as well (https://gitlab.com/gitlab-org/gitlab-ce/issues/67293). As described in graphql/graphql-js#1182 (comment):
Disabling name mangling in graphql-js added a fix to disable this check when Normally, Webpack will set Perhaps this gem is no longer needed now that Rails 5 defaults to Webpacker (https://github.com/rails/webpacker). For those of us not using Webpacker, I wonder if we can work around this by defining a |
I did not try |
Since the gem doesn't seem to maintained anymore, does anyone have successfully implemented graphiql using webpacker? |
We stopped using this gem and just directly use graphiql-js library. |
@yask123 Can you give some pointers on how you did that? I'm in the same boat. |
This works for me as well Thanks |
For anyone else that gets here, the combination of
and
worked for me |
worked for me. I believe this root issue is also solved by this PR in graphql-js. The error I was getting was the same, except |
Hey everyone, I hope that upstream fixes and new configurations for the minifier worked alright. If anyone runs into this again, please open a new issue! |
We are using graphiql-rails as a dependency on one our gems.
From version
1.5
the graphiql page is broken. I can confirm that1.4.11
along with graphql1.8.10
works.The error is present only in production environment. Development works. Might be something that happens during the assets precompile process.
Bug
Accessing GraphiQL page I see only the
loading...
message and get this error:Which then create a second obvious error:
The text was updated successfully, but these errors were encountered: