Skip to content

module: print better message on esm import error

Rodrigo Muino Tomonari requested to merge github/fork/targos/fix-17785 into master

Use the same approach as a previous PR to include the offending line in the output and underline imports of inexistent exports.

Fixes: https://github.com/nodejs/node/issues/17785 Refs: https://github.com/nodejs/node/pull/17281

/cc @bnoordhuis

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

module

Merge request reports

Loading