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

Fix or explain use of modules with TypeScript #162

Open
mattt opened this issue Nov 17, 2023 · 2 comments
Open

Fix or explain use of modules with TypeScript #162

mattt opened this issue Nov 17, 2023 · 2 comments

Comments

@mattt
Copy link
Member

mattt commented Nov 17, 2023

In #161 (comment), a user reported the following error:

TypeError: replicate_1.default is not a constructor

A solution was to add "esModuleInterop": true to the project's tsconfig.json file.

We should either make this step unnecessary, or barring that, document this workaround.

@depyronick
Copy link

Note that if you are going to use esModuleInterop, you probably won't be able to use * as Module imports anymore.

@zeke
Copy link
Member

zeke commented May 28, 2024

Is this still relevant? cc @aron

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