apollographql / fullstack-tutorial

🚀 The Apollo platform tutorial app

Home Page:https://www.apollographql.com/docs/tutorial/introduction.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql-playground-react@1.7.8 not found on cdn.jsdelivr.net

arturfsousa opened this issue · comments

Hey guys, thanks for the handy tutorial.

I've found an error running the Graphql Playground. The apollo-server-core@2.2.0-alpha.2 (apollo-server@2.2.0-alpha.2 dep) is setting the @apollographql/graphql-playground-react@1.7.8 version to 1.7.8, which doesn't exist anymore on the cdn.jsdelivr.net. Here's the playground html source:

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.8/build/static/css/index.css" />
<link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.8/build/favicon.png" />
<script src="//cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.8/build/static/js/middleware.js"></script>

Updating apollo-server to it's current version 2.5.0 fixes the problem, as it changes the apollographql/graphql-playground-react version to 1.7.10.

I will send you guys a PR to update both server/client dependencies, if its ok.

GraphQLPlayground Error

I tried to manually update the apollo-server to 2.5.0 and got a different error, but it is also not looking for the cdn you have referenced above...

Hi @jsrice7391, this is weird right?

Did you check if the 2.5.0 is the exact version? Just because your apollographql/graphql-playground-react version is now 1.7.20 and 2.5.0 uses 1.7.10. If you upgrade/downgrade to ^2.5.0 you could be using different patch version.

Try to clean your node_modules and reinstall the whole thing too. Let me know if you have any progress.