Unable to compile typescript targeting ESNext with ES Module
stuft2 opened this issue · 1 comments
stuft2 commented
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 commented
I have the same problem targeting ES2021 with module/moduleResolution set to "node16"