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

esm error throwing loadTs is not a function #1113

Closed
1 of 4 tasks
mikaelkaron opened this issue Aug 14, 2022 · 2 comments
Closed
1 of 4 tasks

esm error throwing loadTs is not a function #1113

mikaelkaron opened this issue Aug 14, 2022 · 2 comments
Assignees

Comments

@mikaelkaron
Copy link

Issue workflow progress

Progress of the issue based on the Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

    Make sure to fork this template and run yarn generate in the terminal.

    Please make sure the Codegen and plugins version under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

As mentioned in a downstream issue in graphql-codegen it looks like loading cosmiconfig-typescript-loader default export is buggy in esm. The "simple" fix would be to use default-import until this is addressed upstream.

To Reproduce

Expected behavior

execution without error

Environment:

  • OS: Windows
  • NodeJS: 18.4
  • graphql version: 16.5
  • graphql-config version: 4.3.3
@n1ru4l
Copy link
Collaborator

n1ru4l commented Aug 26, 2022

Closed via #1103

@acao
Copy link
Contributor

acao commented Oct 2, 2022

@n1ru4l if I'm still getting an issue like this in 4.3.5 is it probably an esbuild bundling issue? Something I need to mark as external?

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

No branches or pull requests

3 participants