-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
ESM not working as expected #22
Comments
Heya. You’re the first to be hit by this. Expect more to come over the following months tho. TL:DR; don’t update to ESM yet if you don’t want to. But it’s time to start thinking about moving to actual ESM instead of faux-ESM/CJS. Related: |
Is the crux of the issue here that markdown-table is esm only and the typescript project is compiling down to commonjs before executing? |
See https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c for more info about how to use TS with ESM. |
Tried to upgrade to v3 in a project that is using TypeScript to import this file and I'm seeing the following error:
I played around with renaming the main file with
.cjs
and.mjs
and ran into other issues.Running Node v15.11.0
The text was updated successfully, but these errors were encountered: