-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Directory import is not supported resolving ES modules #786
Comments
Okay. I managed to fix directory import by adding a "resolveFully" which is not easy to find because there is no such option in the swcrc schema, however it fails to import pg package
|
The issue with pg package occurs because all exports of the package wrapped into "default" property so instead of |
Thank you. I managed to make everything working so I'm closing the issue. I hope new nodejs option for importing esm from commonjs will make things easier |
Hi guys. I'm trying to run a nest.js app in ESM mode with typescript but it fails on importing directories using index files. When I use commonjs everything works file except an esm only library which I'm trying to use 🫠
Here is the the code & error.
My swcrc
My tsconfig
My workspace package json
The text was updated successfully, but these errors were encountered: