-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
"gatsby-source-graphql": "^5.17.0-next.0",
I got this error-
`
ERROR #11321 API.NODE.EXECUTION
"gatsby-source-graphql" threw an error while running the createSchemaCustomization lifecycle:
Unexpected type: Aggregate
96 | if (!sdl) {
97 | introspectionSchema = await introspectSchema(linkToExecutor(link));
98 | sdl = printSchema(introspectionSchema);
| ^
99 | } else {
100 | introspectionSchema = buildSchema(sdl);
101 | }
File: node_modules\gatsby-source-graphql\gatsby-node.js:98:13
Error: Unexpected type: Aggregate
Array.map
gatsby-node.js:98 exports.createSchemaCustomization
[ep-website]/[gatsby-source-graphql]/gatsby-node.js:98:13
task_queues:95 process.processTicksAndRejections
node:internal/process/task_queues:95:5
api-runner-node.js:436 async runAPI
[ep-website]/[gatsby]/dist/utils/api-runner-node.js:436:16
Reproduction Link
https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-graphql/README.md
Steps to Reproduce
1.I am useing "gatsby-source-graphql" plugin to get data from Hygraph CMS,
2.React 19, all gatsby plugins in @next version,
3.the plugin was working fine with React 18 and older gatsby 5,
4.This bug appears when updated to React 19 and gatsby@next also.
Expected Result
Should get gatsby run build with fetching data from hygraph or any other data source useing "gatsby-source-graphql" plugin, without errors.
Actual Result
This error Occurred -
ERROR #11321 API.NODE.EXECUTION
"gatsby-source-graphql" threw an error while running the createSchemaCustomization lifecycle:
Unexpected type: Aggregate
96 | if (!sdl) {
97 | introspectionSchema = await introspectSchema(linkToExecutor(link));
98 | sdl = printSchema(introspectionSchema);
| ^
99 | } else {
100 | introspectionSchema = buildSchema(sdl);
101 | }
File: node_modules\gatsby-source-graphql\gatsby-node.js:98:13
Error: Unexpected type: Aggregate
Array.map
gatsby-node.js:98 exports.createSchemaCustomization
[ep-website]/[gatsby-source-graphql]/gatsby-node.js:98:13
task_queues:95 process.processTicksAndRejections
node:internal/process/task_queues:95:5
api-runner-node.js:436 async runAPI
[ep-website]/[gatsby]/dist/utils/api-runner-node.js:436:16
Environment
Windows OSConfig Flags
no