-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
ERR_UNKNOWN_FILE_EXTENSION with node 8.9.0 and ECMAScript module syntax #708
Comments
@rogerta |
Cool, thanks Benjamin. |
@rogerta |
Thanks John, I'll check it out. My workaround for now is to compile my typescript code twice: once with ESM syntax for production and another time with CJS syntax for testing and coverage. This sounds like a better option until nodejs/node#17337 is fixed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I just updated |
Expected Behavior
I'd like to get code coverage when I write code (and unit tests) with ECMAScript module syntax.
Observed Behavior
Error is thrown:
Bonus Points! Code (or Repository) that Reproduces Issue
https://github.com/rogerta/node-tap-esm.git
Repro steps:
Forensic Information
Operating System:
Linux argon 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Environment Information: https://gist.github.com/rogerta/54ac869a4f784a848b7f620cc8ce8d4e
The text was updated successfully, but these errors were encountered: