-
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
While giving Gatsby 4 a spin using gatsby-source-graphql
, I found that DSG is not working :(
#33906
Comments
Probably caused by the issue in The fix described in node-fetch/node-fetch#450 (comment) should probably help. I encourage you to submit a PR! I guess it should just change a single line:
to: const nodeFetch = require(`node-fetch`).default But please double check if it works for you in normal develop/build workflow! |
Seems like that actually did the trick! https://build-87bc0901-70ee-477a-8d31-740b2702abc4.gtsb.io/films/ |
This led me to investigate something.. Because Now I found, that |
Functions are not serializable so when passed in through options they won't be working. |
Yeah this is what I figured. So now |
While giving Gatsby 4 a spin using
gatsby-source-graphql
, I found that DSG is not working :(I've set my codebase https://github.com/laurenskling/using-gatsby-source-graphql to defer rendering the
film
pages, and now these pages get anerrors
prop.Example on Gatsby Cloud: https://build-58701a40-9907-423a-9f26-9f80e4b3beea.gtsb.io/ZmlsbXM6Mg== Saying: Cannot query field "swapi" on type "Query". So the entire external Graphql isn't found.
Building and serving locally I do no get this specific error, but another one. I'm getting in my
errors
prop:Originally posted by @laurenskling in #33218 (comment)
The text was updated successfully, but these errors were encountered: