diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-01-25 00:59:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 00:59:26 +0300 |
commit | 5d88f59fdb68c4f17b1ebec295cdc1723886f493 (patch) | |
tree | c88252fde80862b58c764ef54f5db89ae6f27d13 /doc/api/errors.md | |
parent | 726711fe4e2de7992b2ecc6921d3b083be41f950 (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.md | 9 |
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 |