GeezerVison is showing github.com — doc - Document MODULE_NOT_FOUND error code · Issue #21890 · nodejs/node
doc - Document MODULE_NOT_FOUND error code #21890
Labels
docIssues and PRs related to Node.js documentation.errorsIssues and PRs related to JavaScript errors originating in Node.js core.moduleIssues and PRs related to the module subsystem. Description
- Version: All
- Platform: N/A
- Subsystem: N/A
The error code MODULE_NOT_FOUND doesn't seem to be documented (see https://nodejs.org/dist/latest-v8.x/docs/api/errors.html#nodejs-error-codes). Having it officially supported/documented will help us safely implement "tryRequire" operations for optional files.
(By the way, I'm not finding where the API documents live. Maybe the docs for how to update docs could be surfaced better so this could have taken the form of a PR.)
Activity
addaleax commented on Jul 19, 2018
added
docIssues and PRs related to Node.js documentation. moduleIssues and PRs related to the module subsystem. errorsIssues and PRs related to JavaScript errors originating in Node.js core. on Jul 19, 2018DullReferenceException commented on Jul 19, 2018
Ah, thought it'd be in the nodejs.org repo. Maybe that repo could add a note for those that are lost. I'll create a PR.
richardlau commented on Jul 19, 2018
DullReferenceException commented on Jul 19, 2018
I noticed that MODULE_NOT_FOUND doesn't follow the ERR_* naming conventions like all the other documented codes, but changing the code could be a breaking change for many.
Metadata
Metadata
docIssues and PRs related to Node.js documentation.errorsIssues and PRs related to JavaScript errors originating in Node.js core.moduleIssues and PRs related to the module subsystem. Development
No branches or pull requestsIssue actions