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
Node v12: Readme example adapted to is-fn fails with ERR_REQUIRE_ESM #898
Comments
mk-pmb
changed the title
Node v12: Readme example fails with ERR_REQUIRE_ESM
Node v12: Readme example adapted to is-fn fails with ERR_REQUIRE_ESM
May 31, 2021
I almost managed to make a fallback to native dynamic import where it's available. However, that's Promise-based, so I won't be able to make it compatible with the sync-ness expected from a |
This was referenced May 31, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! This is probably a dupe of #868 , but more boiled down, easier to replicate, because I'll include all code to reproduce.
If I understand the 3.2.25 readme correctly, this should work, right? On Ubuntu focal 64-bit, I make a new empty directory, then run in bash:
Unfortunately, it results in
Same if I make a file
main.mjs
and run that instead of-e
, like in "Getting started" way 2.The text was updated successfully, but these errors were encountered: