-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
graphql-codegen-esm
throws loadTs is not a function
#8212
Comments
Playing around a bit this looks to be an upstream problem in In the generated
So it looks like the correct default export is not correctly picked up between CJS and ESM. I've seen this in a few projects since I started transitioning to ESM and the |
there's a relevant coment in the TypeScript repo for reference. |
I'm also facing the same problem. |
@mikaelkaron What |
The I see now linking to it that there is a fix landed in their Edit: I now also realized that it’s you fixing the file :) |
@mikaelkaron New release with this fix is on the way :) https://github.com/dotansimha/graphql-code-generator/releases |
Now that dotansimha/graphql-code-generator#8212 is fixed.
Describe the bug
When trying the official esm example
loadTs is not a function
is thrownYour Example Website or App
https://github.com/dotansimha/graphql-code-generator/tree/master/examples/typescript-esm
Steps to Reproduce the Bug or Issue
npm run codegen
Expected behavior
Expected the example to work
Screenshots or Videos
No response
Platform
graphql
version: 16.5@graphql-codegen/*
version(s): as exampleCodegen Config File
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: