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

Unable to compile typescript targeting ESNext with ES Module #291

Open
stuft2 opened this issue Apr 28, 2023 · 1 comment
Open

Unable to compile typescript targeting ESNext with ES Module #291

stuft2 opened this issue Apr 28, 2023 · 1 comment

Comments

@stuft2
Copy link

stuft2 commented Apr 28, 2023

Trying to compile my typescript to ESM using the @databases/pg package I get this error:

Type 'typeof import("/Users/xx/Projects/atdatabases-pg-esm-bug/node_modules/@databases/pg/lib/index")' has no call signatures.

Minimal Reproduction Repo:
https://github.com/stuft2/atdatabases-pg-esm-bug.git

@cdimitroulas
Copy link

I have the same problem targeting ES2021 with module/moduleResolution set to "node16"

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

2 participants