-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Incorrectly cleans file://
paths
#60
Comments
Also, the cleaning needs to scan for |
I'd help fix this. |
Closed
stack-tools can parse and print URIs now! |
mshima
added a commit
to mshima/jest
that referenced
this issue
Jan 29, 2022
Workaround for tapjs/stack-utils#60
mshima
added a commit
to mshima/jest
that referenced
this issue
Feb 2, 2022
Workaround for tapjs/stack-utils#60
mshima
added a commit
to mshima/jest
that referenced
this issue
Feb 2, 2022
Workaround for tapjs/stack-utils#60
mshima
added a commit
to mshima/jest
that referenced
this issue
Feb 2, 2022
Workaround for tapjs/stack-utils#60
mshima
added a commit
to mshima/jest
that referenced
this issue
Feb 2, 2022
Workaround for tapjs/stack-utils#60
Workaround is to set a non existing cwd:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
file://
URL paths can only be absolute:Yet the
clean
method strips out the CWD from thefile:
URLs, leaving thefile://
at the start, making them invalid.This is a pressing issue, because the error stack from errors thrown in an ESM file starts with the
file:
URL of the ESM. The ecosystem is currently migrating to vanilla ESM (in.mjs
files, or.js
files with package"type": "module"
) and more people will start to notice this bug.In
test.mjs
:Then, run
node test.mjs
and the console log is ([CWD]
substituting the absolute CWD path):Note the invalid
file://test.mjs:6:9
, it should betest.mjs:6:9
.The text was updated successfully, but these errors were encountered: