File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -2225,9 +2225,8 @@ transferable object types has been expanded to cover more types than
2225
2225
2226
2226
### ` ERR_MODULE_NOT_FOUND `
2227
2227
2228
- > Stability: 1 - Experimental
2229
-
2230
- An [ ES Module] [ ] could not be resolved.
2228
+ A module file could not be resolved by the ECMAScript modules loader while
2229
+ attempting an ` import ` operation or when loading the program entry point.
2231
2230
2232
2231
<a id =" ERR_MULTIPLE_CALLBACK " ></a >
2233
2232
@@ -2958,8 +2957,8 @@ changes:
2958
2957
description: Added `requireStack` property.
2959
2958
-->
2960
2959
2961
- A module file could not be resolved while attempting a [ ` require() ` ] [ ] or
2962
- ` import ` operation.
2960
+ A module file could not be resolved by the CommonJS modules loader while
2961
+ attempting a [ ` require() ` ] [ ] operation or when loading the program entry point .
2963
2962
2964
2963
## Legacy Node.js error codes
2965
2964
Original file line number Diff line number Diff line change @@ -429,8 +429,8 @@ A required module prefixed with `'./'` is relative to the file calling
429
429
Without a leading ` '/' ` , ` './' ` , or ` '../' ` to indicate a file, the module must
430
430
either be a core module or is loaded from a ` node_modules ` folder.
431
431
432
- If the given path does not exist, ` require() ` will throw an [ ` Error ` ] [ ] with its
433
- ` code ` property set to ` ' MODULE_NOT_FOUND' ` .
432
+ If the given path does not exist, ` require() ` will throw a
433
+ [ ` MODULE_NOT_FOUND ` ] [ ] error .
434
434
435
435
## Folders as modules
436
436
@@ -1084,7 +1084,7 @@ This section was moved to
1084
1084
[ `"type"` ] : packages.md#type
1085
1085
[ `ERR_REQUIRE_ESM` ] : errors.md#err_require_esm
1086
1086
[ `ERR_UNSUPPORTED_DIR_IMPORT` ] : errors.md#err_unsupported_dir_import
1087
- [ `Error ` ] : errors.md#class-error
1087
+ [ `MODULE_NOT_FOUND ` ] : errors.md#module_not_found
1088
1088
[ `__dirname` ] : #__dirname
1089
1089
[ `__filename` ] : #__filename
1090
1090
[ `import()` ] : https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports
You can’t perform that action at this time.
0 commit comments