GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Document MODULE_NOT_FOUND by DullReferenceException · Pull Request #21894 · nodejs/node Conversation
|
| [`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.
The 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| [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 an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The right-hand side of this should be modules.html#modules_require instead.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Some nits)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| [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#modules_require |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
[`require()`]: modules.html#modules_require
[`require('crypto').setEngine()`]: item.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| Creation of a [`zlib`][] object failed due to incorrect configuration. | ||
|
|
||
| ### MODULE_NOT_FOUND |
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| ### MODULE_NOT_FOUND | ||
|
|
||
| A module file could not be resolved while attempting a [`require`][] or |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
[`require`][] -> [`require()`][]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Leaving the added anchor in errors.md is fine for consistency, I honestly do not know why they are being explicitly added in that file, even after looking at the original PR where the first documented errors were added. /cc @jasnell |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The anchors are added to explicitly ensure that the exact error code can be used as an anchor in the docs rather than the anchor generated by the markdown rendering... e.g. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Creation of a [`zlib`][] object failed due to incorrect configuration. | ||
|
|
||
| [`'uncaughtException'`]: process.html#process_event_uncaughtexception | ||
| ### MODULE_NOT_FOUND |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It is very unfortunate that this does not have the ERR_ prefix :-(
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Creation of a [`zlib`][] object failed due to incorrect configuration. | ||
|
|
||
| [`'uncaughtException'`]: process.html#process_event_uncaughtexception | ||
| ### MODULE_NOT_FOUND |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This definitely needs to include the <a id="#MODULE_NOT_FOUND"></a> anchor
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI-lite: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/337/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Document `MODULE_NOT_FOUND` as a possible `code` for errors. Also, some missorting of bottom references was fixed in passing. PR-URL: #21894 Fixes: #21890 Reviewed-By: James M Snell <[email protected]>
|
Landed in 87f7671 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Document `MODULE_NOT_FOUND` as a possible `code` for errors. Also, some missorting of bottom references was fixed in passing. PR-URL: #21894 Fixes: #21890 Reviewed-By: James M Snell <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
doc - Document MODULE_NOT_FOUND error code
There was an error while loading. Please reload this page.