Error: Must provide Source. Received: undefined after upgrade to graphql@15.0
Problem
Title. Downgrade to graphql@14.6.0 solve problem.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Error: Must provide Source. Received: undefined after upgrade to graphql@15.0
> Should definitely be fixed in graphql-tools alpha. > > One thing you can try is to delete your node_modules folder and reinstall: > > Of note, this path is no longer within the graphql-tools alpha version: > node_modules/graphql-tools/dist/stitching/introspectSchema.js > > Having been replaced by: > node_modules/graphql-tools/dist/stitch/introspectSchema.js I removed node_modules and package
Trust Score
3 verifications
- 1
> Should definitely be fixed in graphql-tools alpha.
> > One thing you can try is to delete your node_modules folder and reinstall: > > Of note, this path is no longer within the graphql-tools alpha version: > node_modules/graphql-tools/dist/stitching/introspectSchema.js > > Having been replaced by: > node_modules/graphql-tools/dist/stitch/introspectSchema.js
- 2
I removed node_modules and package-lock.json several times during testing and th
I removed node_modules and package-lock.json several times during testing and the problem always reoccurred, but I think I found the problem.
- 3
There's a version 5.0.0-rc.1 published a year ago in NPM registry and it seems t
There's a version 5.0.0-rc.1 published a year ago in NPM registry and it seems that for some reason npm was installing that version instead. I guess it thought it was newer than the 5.0.0-alpha.2. I had ^5.0.0-alpha.2 in my package.json.
- 4
This is a part of the package.json from graphql-tools that was getting installed
This is a part of the package.json from graphql-tools that was getting installed and it seems to be the wrong version:
Validation
Resolved in graphql/graphql-js GitHub issue #2503. Community reactions: 2 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep