Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cspotcode opened this issue Jul 19, 2021 · 0 comments · Fixed by #1405
Closed

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

cspotcode opened this issue Jul 19, 2021 · 0 comments · Fixed by #1405
Milestone

Comments

@cspotcode
Copy link
Collaborator

cspotcode commented Jul 19, 2021

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.

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 a pull request may close this issue.

1 participant