gatsby-source-graphql fails
See original GitHub issueDescription
The latest version of gatsby-source-graphql
fails because it’s missing a file. Having dug into this a bit, I think it’s because that file (batching/dataloader-link) is gitignored - https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-graphql/.gitignore#L2
Steps to reproduce
Install the latest version Try building the site
Expected result
Gatsby should build
Actual result
Gatsby fails with
Error in "[HIDDENFORPRIVACY]/node_modules/gatsby-source-graphql/gatsby-node.js": Cannot find module './batching/dataloader-link'
Environment
System:
OS: macOS 10.15.3
CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
Yarn: 1.19.2 - /usr/local/bin/yarn
npm: 6.11.3 - ~/.nvm/versions/node/v10.16.0/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 80.0.3987.149
Firefox: 74.0
Safari: 13.0.5
npmPackages:
gatsby: ^2.13.41 => 2.20.12
gatsby-image: ^2.1.2 => 2.3.1
gatsby-plugin-canonical-urls: ^2.0.13 => 2.2.1
gatsby-plugin-emotion: ^4.0.7 => 4.2.1
gatsby-plugin-google-tagmanager: ^2.0.15 => 2.2.1
gatsby-plugin-manifest: ^2.2.5 => 2.3.3
gatsby-plugin-netlify: ^2.1.31 => 2.2.1
gatsby-plugin-offline: ^3.0.6 => 3.1.2
gatsby-plugin-react-helmet: ^3.0.12 => 3.2.1
gatsby-plugin-react-svg: ^2.1.1 => 2.1.2
gatsby-plugin-robots-txt: ^1.4.0 => 1.5.0
gatsby-plugin-sharp: ^2.1.3 => 2.5.3
gatsby-plugin-sitemap: ^2.1.0 => 2.3.1
gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
gatsby-source-filesystem: ^2.0.37 => 2.2.2
gatsby-source-graphql: ^2.3.1 => 2.3.1
gatsby-source-instagram: ^0.5.0 => 0.5.1
gatsby-source-twitter: ^3.0.0 => 3.2.1
gatsby-transformer-csv: ^2.2.1 => 2.2.1
gatsby-transformer-sharp: ^2.1.21 => 2.4.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Troubleshooting Common Errors
comes up when a GraphQL query is trying to query a field for subfields, but none exist. This generally happens when plugins that...
Read more >Build fails when using gatsby-source-graphql in ...
Build fails when using gatsby-source-graphql in gatsby@next v4 beta. The build was successful when I got a hint from the warn Calling ...
Read more >Gatsby error: Unexpected type: Query, while running ...
When running Gatsby build we encounter this problem: "gatsby-source-graphql" threw an error while running the createSchemaCustomization ...
Read more >gatsby-source-graphql
This plugin has known limitations, specifically in that it does not support Incremental Builds, CMS Preview, image optimizations, and lack of full support...
Read more >Gatsby Changelog | 5.3.0
Gatsby uses child processes to execute its GraphQL queries in parallel (with its own package gatsby-worker ). When Parallel Query Running was introduced...
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 Free
Top 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
Should be fixed in
gatsby-source-graphql@2.3.2
Sorry for the hassle. I prematurely used Typescript for a new Query Batching feature without appropriate TS build configuration (worked locally because of IDE).
Gatsby has not decided yet to switch plugins to TS as it will make contributions harder. So I just converted TS files back to vanilla JS in #22848 which should fix this issue. We will publish a version with the fix in the next couple of hours.