GraphQL Playground CDN URL is not valid
See original GitHub issueWhen starting a new project, and navigating to the endpoint, the following error is thrown in the console:
GET https://cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.10/build/static/js/middleware.js net::ERR_ABORTED 404
GET https://cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.10/build/static/css/index.css net::ERR_ABORTED 404
graphql:537 Uncaught ReferenceError: GraphQLPlayground is not definedat graphql:537
It appears that the url for the cdn is no longer valid, and needs to be updated to to
https://cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.25/build/static/js/middleware.js
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:10 (4 by maintainers)
Top Results From Across the Web
GraphQL Playground without CDN in Apollo Server 2
I found out that when using the electron release of graphql-playground it does not go to the internet and everything is locally running....
Read more >API Reference: Landing page plugins - Apollo GraphQL Docs
This API reference documents built-in plugins that add a landing page to Apollo Server's base URL, enabling visitors to interact with the server...
Read more >GraphQL - Sanity.io
How to use GraphQL API for your project on Sanity.io. ... process or similar, you can use the --playground and --no-playground flags to...
Read more >Deploy a GraphQL API as an Azure Function - Microsoft Learn
Query local Azure Function with GraphQL using GraphQL playground. Access the GraphQL playground from the locally running Function app.
Read more >GraphQL specification
The two keywords true and false represent the two boolean values. ... Another example of a potentially useful custom scalar is Url ,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone else struggling with this, I learned that you can override the version of
graphql-playground-react
in your ApolloServer configuration like so.I’m not sure why 1.7.10 is no longer available in the CDN.
@abernix I believe that this is still an issue in the currently available https://github.com/apollographql/fullstack-tutorial/ project.
As it’s requesting: https://cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.8/build/static/css/index.css
See here for discussion: https://spectrum.chat/apollo/apollo-server/graphql-playground-does-not-work-on-localhost-4000~fd431b61-5051-42f8-8bf9-c12a3ac64e10