We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running why-is-node-running myscript.mjs produces
why-is-node-running myscript.mjs
> internal/modules/cjs/loader.js:1007 throw new ERR_REQUIRE_ESM(filename); ^ Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: myscript.mjs
ES Modules support has just landed.
The text was updated successfully, but these errors were encountered:
Prob needs to use import instead require for mjs. Feel free to send a PR
Sorry, something went wrong.
No branches or pull requests
Running
why-is-node-running myscript.mjs
producesES Modules support has just landed.
The text was updated successfully, but these errors were encountered: