Skip to content

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

Closed

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.

Activity

  1. added this to the 10.x.x milestone on Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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