-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatsby-source-graphql@2.1.33 giving a "context is not defined" error #21170
Comments
I can confirm that the downgrade to |
Poor linting. Should be able to fix overnight (US Eastern). Anybody who can give me some guidance on the underlying lint failure, would be much appreciated. |
Should be fixed by v8.5.1. |
@stevebreault Can you confirm that upstream fixes in |
@vladar I added Here's my output of
|
Feel free to reopen if you hit this again, closing for now, latest versions of graphql-tools-fork use eslint rules which only enable mocha environment in test files so that this can be avoided. |
Description
After having upgraded to version 2.1.33 of
gatsby-source-graphql
I'm getting an error when trying to query. Error does not occur in versions of the plugin usinggraphql-tools
rather thangraphql-tools-fork
(ex.: previous version used was 2.1.15). The graphql source in this case is an AWS AppSync endpoint. A test call to the endpoint with the parameters set in thegatsby-config.js
file returns a successful response.Steps to reproduce
gatsby-config.js
Upon navigating to the graphql console at http://localhost:8000/___graphql and trying to run a query against the fieldName, the following error result occurs:
Expected result
The query should return data from the graphql source, which it does when an older version of the package is used.
Actual result
"context is not defined" error is returned
Environment
The text was updated successfully, but these errors were encountered: