Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use absolute import path when importing apollo-codegen legacyIR #2830

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Aug 27, 2024

Description

Fixes import error when using the mjs version of the graphql-tool-utilities package with node

Grumble

The graphql packages should probably have always been commonjs only, but it's about 4 years too late for that.

@BPScott BPScott requested a review from a team as a code owner August 27, 2024 23:39
@BPScott
Copy link
Member Author

BPScott commented Aug 27, 2024

/snapit

@BPScott
Copy link
Member Author

BPScott commented Aug 27, 2024

Ah fun snapit seems bust. #2821 seems like it might fix, though it's weird that type-check passes locally

Fixes import error when using the mjs version of the
graphql-tool-utilities package with node
@BPScott
Copy link
Member Author

BPScott commented Aug 28, 2024

/snapit

Copy link
Contributor

🫰✨ Thanks @BPScott! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

"graphql-fixtures": "0.0.0-snapshot-20240828012157",
"graphql-tool-utilities": "0.0.0-snapshot-20240828012157",
"graphql-typescript-definitions": "0.0.0-snapshot-20240828012157",
"graphql-validate-fixtures": "0.0.0-snapshot-20240828012157",
"@shopify/react-i18n": "0.0.0-snapshot-20240828012157",
"@shopify/react-i18n-universal-provider": "0.0.0-snapshot-20240828012157"

@BPScott
Copy link
Member Author

BPScott commented Aug 28, 2024

Tested this locally in checkout-web and it fixes my problem

@BPScott BPScott merged commit 88f1cbe into main Aug 28, 2024
5 checks passed
@BPScott BPScott deleted the fixcodegenimport branch August 28, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants