Unverified Commit 2c3c9f5a authored by Myles Borins's avatar Myles Borins
Browse files

module: better error for named exports from cjs



We do not support importing named exports from a CJS module.
This change decorates the error message for missing named exports in
the case where the module being imported is expected to be CJS by the
ESM loader.

Signed-off-by: default avatarMyles Borins <myles.borins@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/33256


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
parent d005f490
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment