doc: file url in stack traces contains file://
#39787
Labels
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello! Is this open for contribution ? I would like to take up this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: v16.6.2
Platform: Darwin user.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Subsystem: -
Location
Affected URL(s):
Description
The doc says
However the error stack trace actually contains
file://
in es module files.I'm not sure if it occurs in other situations.
Consider this input:
Save and run
node a.js
:Save and run
node a.mjs
:What I have to mention here is sindresorhus/clean-stack#27, using normal path would be better in many terminals. Please take that into consideration too.
My suggestion is node.js always returning normal path in error stack trace.
submit a pull request.
The text was updated successfully, but these errors were encountered: