Skip to content

GraphClient TypeError: Cannot read properties of undefined (reading 'value') #834

@mrosendin

Description

@mrosendin

Following the query example in README:

app % yarn graphclient build
yarn run v1.22.22
$ app/node_modules/.bin/graphclient build
[2024-10-21T19:40:00.331Z] INFO  GraphClient Cleaning existing artifacts
[2024-10-21T19:40:00.335Z] INFO  GraphClient Reading the configuration
[2024-10-21T19:40:00.435Z] ERROR GraphClient TypeError: Cannot read properties of undefined (reading 'value')
    at Object.OperationDefinition (/app/node_modules/@graphql-mesh/config/cjs/process.js:454:86)
    at visit (app/node_modules/graphql/language/visitor.js:243:26)
    at app/node_modules/@graphql-mesh/config/cjs/process.js:452:37
    at async Promise.all (index 0)
    at async processConfig (app/node_modules/@graphql-mesh/config/cjs/process.js:446:9)
    at async Object.handler (app/node_modules/@graphql-mesh/cli/cjs/index.js:294:32)

Node v22.9.0 on macOS Sonoma 14.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions