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.

apollo-server-express 2.11 + graphql 15.0 = error: Must provide Source. Received: undefined.

See original GitHub issue

Upon 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:closed
  • Created 3 years ago
  • Reactions:25
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
glassercommented, Feb 11, 2021

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

0reactions
glassercommented, Feb 6, 2021

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.

Read more comments on GitHub >

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

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