Skip to content

lib: add parent to ERR_UNKNOWN_FILE_EXTENSION message

  • default_resolve.js updated to pass parentURL into error
  • ERR_UNKNOWN_FILE_EXTENSION updated to include parentURL
  • test added to check for import message in error

Fixes: https://github.com/nodejs/node/issues/30721

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

Merge request reports

Loading