Skip to content

codegen hangs in 2.18.0 #1502

@u-ashish

Description

@u-ashish

Intended outcome:

Running client:codegen to generate GQL types from local project.

Actual outcome:

When running this command, it just hangs (I waited 40 minutes before giving up).

npx apollo@2.18.0 client:codegen --localSchemaFile $GRAPHQL_SCHEMA_PATH --target 'typescript' --outputFlat --includes "server/src/**,frontend/src/**"  $OUTPUT_PATH

GRAPHQL_SCHEMA_PATH and $OUTPUT_PATH are local files one subdirectory down.

Please note that if if I use 2.17.4 instead of 2.18.0, it works perfectly under the exact same scenarios.

How to reproduce the issue:

I'm not sure how to help reproduce this because I don't want to share the codebase, but admittedly without more in-depth logging from the script, I can't pinpoint what might be causing the issue.

Is there a way to enable verbose logging as it runs codegen for me to see where it's hanging? With that I might be able to create a reproducible sample.

Versions

As mentioned above, it works for 2.17.4 but hangs for 2.18.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions