-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Error [ERR_REQUIRE_ESM]: Must use import to load ES #17063
Comments
afaik |
Hi @yogeshgadge! This isn't really a Node issue. You're getting the error
because you need to opt-in to the node -r @std/esm apple.mjs You'll get
This is because, by default, "@std/esm": "cjs" Then |
FWIW I've fixed the initial error message to be more helpful, so that in a future release when you don't have the
|
Note that that is not If you wish to run it using node's built-in
|
Closing since it's not an issue with node.js core. |
Sorry wrong repo. |
"@std/esm@0.15.0"
node 9.2.0
Question asked https://stackoverflow.com/q/47315280/2103767 trying to get node --experimental-module to work with resolve and stumbled across this.
apple.mjs contents
The text was updated successfully, but these errors were encountered: