Closed buymed-thanhdao closed 1 year ago
Hey @xthanhx, thanks for reporting the issue, I managed to reproduce it. The problem is with how Typescript compiles ESM to CJS modules. I have made a small change, which now results in the right export qualifier (module.exports
). That release is on its way to NPM, and you should be able to install it with npm i embedded-postgres@latest
. You should then be able to import the package with import EmbeddedPostgres from 'embedded-postgres';
as expected.
I liked introducing it on the Readme and got an error like the one below.
but when I do like the below it works.