fullstack-tutorial icon indicating copy to clipboard operation
fullstack-tutorial copied to clipboard

[email protected] not found on cdn.jsdelivr.net

Open arturfsousa opened this issue 5 years ago • 2 comments

Hey guys, thanks for the handy tutorial.

I've found an error running the Graphql Playground. The [email protected] ([email protected] dep) is setting the @apollographql/[email protected] 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/[email protected]/build/static/css/index.css" />
<link rel="shortcut icon" href="//cdn.jsdelivr.net/npm/@apollographql/[email protected]/build/favicon.png" />
<script src="//cdn.jsdelivr.net/npm/@apollographql/[email protected]/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.

arturfsousa avatar May 18 '19 01:05 arturfsousa

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

jsrice7391 avatar May 22 '19 02:05 jsrice7391

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.

arturfsousa avatar Jun 21 '19 14:06 arturfsousa