-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document MODULE_NOT_FOUND #21894
Document MODULE_NOT_FOUND #21894
Changes from 1 commit
69bfb9f
29b6b62
4d07005
4c6925e
53cb1c2
ec9e432
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1831,6 +1831,12 @@ unknown file extension. | |
|
||
Creation of a [`zlib`][] object failed due to incorrect configuration. | ||
|
||
<a id="MODULE_NOT_FOUND"></a> | ||
### MODULE_NOT_FOUND | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is very unfortunate that this does not have the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code is 7 years old so we can't blame anyone for that : 3f987cd There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This definitely needs to include the |
||
|
||
A module file could not be resolved while attempting a [`require`][] or | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
`import` operation. | ||
|
||
[`'uncaughtException'`]: process.html#process_event_uncaughtexception | ||
[`--force-fips`]: cli.html#cli_force_fips | ||
[`child_process`]: child_process.html | ||
|
@@ -1886,3 +1892,4 @@ Creation of a [`zlib`][] object failed due to incorrect configuration. | |
[try-catch]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch | ||
[vm]: vm.html | ||
[WHATWG Supported Encodings]: util.html#util_whatwg_supported_encodings | ||
[`require`]: modules.html#require | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The right-hand side of this should be |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -542,6 +542,7 @@ A reference to the current module, see the section about the | |
[`module` object][]. In particular, `module.exports` is used for defining what | ||
a module exports and makes available through `require()`. | ||
|
||
<a id="require"></a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't necessary as the html generator for the markdown will create these id attributes automatically. |
||
### require() | ||
<!-- YAML | ||
added: v0.1.13 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### ERR_MODULE_NOT_FOUND
and be placed in a sorted way?<a id=...
fragments.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the actual error name is currently just
MODULE_NOT_FOUND
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is the first error name out of the common name pattern?