-
-
Notifications
You must be signed in to change notification settings - Fork 99
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 β TypeError [ERR_UNKNOWN_FILE_EXTENSION] #72
Comments
Did you mean to use our ESM loader? This is a node issue; the only way to hook into node's ESM loading is with node's |
Oh, I did not know about That said, @cspotcode and I may be confusing things, but I thought that the dynamic import used by default here ( So yes, I can run a single test-file at the time using |
Hey, thanks! What if the fix was to always use As touched on here, ESM Node has |
That said, we could still apply a form of the fix @tolu sent in #73 (thank you!) but that won't be the full story. For example, as of now, JSON modules. I think the full fix is:
|
@lukeed all that sounds great to me, I must admit that the finer (if not all) points of ESM-loading and the usage of node flags pass at some distance above my head, but I'd be glad to make the suggested changes to the PR π If not anything else I've certainly learned a lot trying to make sense of this π |
Cool. It's definitely in a weird-ish spot still. I'm working through it too (made clear here haha) Things definitely have progressed, but they definitely work better when it's all-or-nothing. Just put the idea out there for now, to see if anyone can think of a reason why |
OK. The first "half" of the fix is now available in If you still experience this issue after upgrading, please leave some information here so that it can reproduced! |
works like a charm π π thanks! |
Haven't had any issues at all with 0.5.1 (or heard of any). I think we're good to go here. Can reopen in the future if something comes up. |
I get this error when trying the typescript example with updated dependencies:
An image for context π
Single tests files can be run via:
The text was updated successfully, but these errors were encountered: