Repository navigation
doc - Document MODULE_NOT_FOUND error code #21890
Description
Activity
(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.)
They’re in
doc/api, and some more generic information is in https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#step-3-code – if that’s helpful, would you be interested in working on a PR?- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.errorsIssues and PRs related to JavaScript errors originating in Node.js core.Issues and PRs related to JavaScript errors originating in Node.js core.
on Jul 19, 2018 DullReferenceException commented
on Jul 19, 2018 AuthorMore actionsAh, thought it'd be in the
nodejs.orgrepo. Maybe that repo could add a note for those that are lost. I'll create a PR.Also as of #21703 there is now an
Edit on GitHublink on each page, e.g. https://nodejs.org/dist/latest-v10.x/docs/api/errors.html (not on v8.x yet until that PR is backported).DullReferenceException commented
on Jul 19, 2018 AuthorMore actionsI noticed that
MODULE_NOT_FOUNDdoesn't follow theERR_*naming conventions like all the other documented codes, but changing the code could be a breaking change for many.- added a commit that references this issue
on Jul 24, 2018 - added a commit that references this issue
on Jul 27, 2026
The error code
MODULE_NOT_FOUNDdoesn'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.)