-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.
Description
The following test case was brought up by @addaleax
esm.mjs:
import mod from './';
console.log(mod);
where node esm.mjs
fails with
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /tmp/test/
at Loader.defaultGetFormat [as _getFormat] (internal/modules/esm/get_format.js:65:15)
We should ensure the error message here provides the correct steps to resolve the issue.
addaleax and himself65
Metadata
Metadata
Assignees
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.