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
exports
CommonJS (cjs) import no longer works. Try from a node v14+ REPL
> const nd = require("normalize-diacritics") Uncaught: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:
No error on CJS import.
ERR_REQUIRE_ESM
Per conditional export docs, order matters: place "default": "./dist/index.mjs" at the end of the list and everything works!
"default": "./dist/index.mjs"
The text was updated successfully, but these errors were encountered:
6765839
motss
No branches or pull requests
Description
CommonJS (cjs) import no longer works. Try from a node v14+ REPL
Expected outcome
No error on CJS import.
Actual outcome
ERR_REQUIRE_ESM
Fix
Per conditional export docs, order matters: place
"default": "./dist/index.mjs"
at the end of the list and everything works!Versions of affected system
The text was updated successfully, but these errors were encountered: