Skip to content

Handle multi-line error messages from require#49

Open
maxtruxa wants to merge 1 commit intoOffirmo:masterfrom
maxtruxa:patch-1
Open

Handle multi-line error messages from require#49
maxtruxa wants to merge 1 commit intoOffirmo:masterfrom
maxtruxa:patch-1

Conversation

@maxtruxa
Copy link

Since Node.js 12 the "MODULE_NOT_FOUND" error thrown by require has a "require stack" appended to its message. This change in behavior results in a message being printed to stderr for example when "config.development.local.json" does not exist.

See nodejs/node#25690.

Since Node.js 12 the "MODULE_NOT_FOUND" error thrown by `require` has a "require stack" appended to its message. This change in behavior results in a message being printed to stderr for example when "config.development.local.json" does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant