Skip to content

doc - Document MODULE_NOT_FOUND error code #21890

Closed
@DullReferenceException

Description

@DullReferenceException
  • 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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.errorsIssues and PRs related to JavaScript errors originated in Node.js core.moduleIssues and PRs related to the module subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions