apollo-server-express 2.11 + graphql 15.0 = error: Must provide Source. Received: undefined.
See original GitHub issueUpon upgrading the graphql package to 15.0.0
, the package apollo-server-express
throws an error as soon as it’s being included. Reverting back to 14.6.0
fixes the issue.
error: Must provide Source. Received: undefined.
Steps to reproduce:
- Install latest
apollo-server-express
package (2.11.0
) - Install latest
graphql
package (15.0.0
) - Run sample code (index.js):
const apollo = require('apollo-server-express')
- Process will crash immediately with above error.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:25
- Comments:9 (3 by maintainers)
Top Results From Across the Web
AWS Amplify Graphql - TypeError: Must provide Source ...
... but I keep receiving the following error: TypeError: Must provide Source. Received: undefined. The query is as follows:
Read more >Parse 4.2 startup error Must Provide Source. Received
I am upgrading from Parse Server 3.10 to 4.2 and I am getting the following error: XXXXXXX/node_modules/graphql/jsutils/devAssert.js:13 ...
Read more >Migrating to Apollo Server 4 - Apollo GraphQL Docs
In Apollo Server 3, the apollo-server package is a "batteries-included" package that wraps apollo-server-express , providing an HTTP server with minimal ...
Read more >Error: Must provide Source. Received - JavaScript for WordPress
My code yields a “Error: Must provide Source. Received …” in terminal. It points out something is wrong in gatsby-node.js:10:11
Read more >Creating a scalable GraphQL API with MySQL, Node.js, and ...
In this tutorial, we will build a small GraphQL endpoint for a ticketing system. We want to create an endpoint where we can...
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
Apollo Server v2.21.0 will fix this. I published alpha packages with version v2.21.0-alpha.0. I’d love some folks to try the alpha and let me know if it works for you! Both folks who actually use the upload feature and those who don’t! It’s currently in the release-2.21.0 branch, being tracked at https://github.com/apollographql/apollo-server/pull/4922
I’m going to close this as duplicate of #4865 but I’ll make sure to note that it might be slightly different than just a peer dep issue.