question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQL Playground CDN URL is not valid

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

22reactions
creekdropscommented, May 16, 2019

For anyone else struggling with this, I learned that you can override the version of graphql-playground-react in your ApolloServer configuration like so.

const server = new ApolloServer({
  typeDefs,
  resolvers,
  playground: { version: '1.7.25' }
});

I’m not sure why 1.7.10 is no longer available in the CDN.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found