Graphql-playground: GraphQL Playground does not work offline

Created on 16 Aug 2019  路  8Comments  路  Source: graphql/graphql-playground

This issue pertains to the following package(s):

  • [ ] GraphQL Playground - Electron App
  • [x] GraphQL Playground HTML
  • [x] GraphQL Playground
  • [ ] GraphQL Playground Express Middleware
  • [ ] GraphQL Playground Hapi Middleware
  • [ ] GraphQL Playground Koa Middleware
  • [ ] GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

OS X 10.13.6

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

1.7.26

What is the expected behavior?

When I am offline, I expect the local GraphQL Playground to load and work against the local server.

What is the actual behavior?

The playground does not load, and displays some CDN-related errors.

What steps may we take to reproduce the behavior?

Disconnect from the internet, and try to load a local GraphQL playground instance.

_Please provide a gif or image of the issue for a quicker response/fix._

image

kinfeature rf0-needs-spec

Most helpful comment

I see im not the first and surely not the last in have the same issue with the cnd bundles. I know in a ideal world all we developers will have nice and fast internet connections, but thias far far away for been a reallity for everyone, for instance i live in cuba, an i have the "privilege" of have a time messured, expensive and really slown internet service. It will be nice to bundle the react and css files with the repo and leave a note or indication of how to use those instead. As i do my self downloading the cdn bundles and deployit as static with the same express server, and offcourse 'tuning' the original html assamble section of the playground code ( lines 15 and 19 of the graphql-playground-html/dist/render-playground-page.js ).

All 8 comments

@pavellishin were you able to solve this problem?

No, but I haven't been actively trying, and I haven't been in an offline-work-situation since then.

I faced the same issue today.

Is there any sense of using CDN here? Sure, it should be fixed.

Me too, faced the same issue yesterday when my net went off & I wasn鈥檛 able to open Playground.

Have no idea why a CDN is used, instead of a local build.

Would love to see this fixed 馃憤

This is also an issue for Strapi users where this playground is a plugin.

In my case the cdn is being blocked by the company so I cannot use the playground. There should be an option to not use the cdn here. I was using the standalone Apollo Server 3.0.0.aplha-2

I understand that cdn is needed to be able to get middleware.js because of security issues versus using file protocol with local build. I am not sure if there is a way to render the GraphQL playgound from a non react client without having to depend on a CDN

I see im not the first and surely not the last in have the same issue with the cnd bundles. I know in a ideal world all we developers will have nice and fast internet connections, but thias far far away for been a reallity for everyone, for instance i live in cuba, an i have the "privilege" of have a time messured, expensive and really slown internet service. It will be nice to bundle the react and css files with the repo and leave a note or indication of how to use those instead. As i do my self downloading the cdn bundles and deployit as static with the same express server, and offcourse 'tuning' the original html assamble section of the playground code ( lines 15 and 19 of the graphql-playground-html/dist/render-playground-page.js ).

I don't think they'll get around to this issue, y'all, given that they announced that this is going bye-bye way back in April :/ https://github.com/graphql/graphql-playground/issues/1143

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhaoyi0113 picture zhaoyi0113  路  4Comments

schickling picture schickling  路  4Comments

tobkle picture tobkle  路  4Comments

divyenduz picture divyenduz  路  4Comments

bublig737 picture bublig737  路  4Comments