Closed cspotcode closed 2 years ago
I think source-map-support's prepareStackTrace implementation may need to be updated to match node's implementation: https://github.com/nodejs/node/blob/3cbaabc4622df1b4009b9d026a1a970bdbae6e89/lib/internal/errors.js#L90-L133
Here is the node PR which changed its behavior: https://github.com/nodejs/node/pull/39182/
Related to TypeStrong/ts-node#1403
On the new node 16.5, important information is being omitted from uncaught error output.
From vanilla node:
With source-map-support the output is modified in ways that I think should be considered a bug.
For example,
[ERR_UNSUPPORTED_ESM_URL_SCHEME]
is omitted:This is not the same as #263, although anyone who attempts this reproduction will notice the lack of colored output.