Class ModuleLoadError
Hierarchy
- Error
- ModuleLoadError
Index
Constructors
Methods
Properties
Constructors
constructor
- new
Module (options): ModuleLoadErrorLoad Error Parameters
- options: {
code: string;
message: string;
}Options object.
code: string
Error code.
message: string
Error message.
Returns ModuleLoadError
- options: {
Methods
Static
captureStackTrace
- capture
Stack (targetObject, constructorOpt?): voidTrace Create .stack property on a target object
Parameters
- targetObject: object
Optional
constructorOpt: Function
Returns void
Provides a custom error for Node to combine CJS and ESM module not found errors.