Skip to content

source-map-support affects rendering of node errors #1403

@cspotcode

Description

@cspotcode

Related: cspotcode/node-source-map-support#3

Discovered with node 16.5

2x problems:
vanilla node outputs:

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader. Received protocol 'http:'

with source-map-support/register, outputs:

Error: Only file and data URLs are supported by the default ESM loader. Received protocol 'http:'

The other problem is that node's errors use pretty stack trace colors, but source-map-support gets rid of that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions