Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-01-25 00:59:26 +0300
committerGitHub <noreply@github.com>2022-01-25 00:59:26 +0300
commit5d88f59fdb68c4f17b1ebec295cdc1723886f493 (patch)
treec88252fde80862b58c764ef54f5db89ae6f27d13 /doc/api/errors.md
parent726711fe4e2de7992b2ecc6921d3b083be41f950 (diff)
doc: fix documentation for `MODULE_NOT_FOUND` and `ERR_MODULE_NOT_FOUND`
PR-URL: https://github.com/nodejs/node/pull/41645 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/errors.md')
-rw-r--r--doc/api/errors.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index a22f125ce62..f7950575472 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -2225,9 +2225,8 @@ transferable object types has been expanded to cover more types than
### `ERR_MODULE_NOT_FOUND`
-> Stability: 1 - Experimental
-
-An [ES Module][] could not be resolved.
+A module file could not be resolved by the ECMAScript modules loader while
+attempting an `import` operation or when loading the program entry point.
<a id="ERR_MULTIPLE_CALLBACK"></a>
@@ -2958,8 +2957,8 @@ changes:
description: Added `requireStack` property.
-->
-A module file could not be resolved while attempting a [`require()`][] or
-`import` operation.
+A module file could not be resolved by the CommonJS modules loader while
+attempting a [`require()`][] operation or when loading the program entry point.
## Legacy Node.js error codes