-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.questionIssues that look for answers.Issues that look for answers.
Description
Hello
Starting from Node version 12 the Cannot find module
error contains stack
information inside of a message property.
However, in the 10 version the error message didn't contain the stack information in the message property.
Will this inconsistency be fixed?
You can easily reproduce it by the following code:
try {
require('non-existing-module')
}
catch (err) {
console.log(err.message);
}
My console output:
Cannot find module 'non-existing-module'
Require stack:
- D:\Projects\testcafe\non-existing-module.js
Node version 12
Windows 64
jaydp17
Metadata
Metadata
Assignees
Labels
moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.questionIssues that look for answers.Issues that look for answers.