Skip to content

Error useing "gatsby-source-graphql": "^5.17.0-next.0", Not Compatible with New Gatsby@next version #39384

@Dhanupractical

Description

@Dhanupractical

Preliminary Checks

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 OS

Config Flags

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triage neededIssue or pull request that need to be triaged and assigned to a reviewertype: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions