We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reported here: #1007 (comment)
https://github.com/TypeStrong/ts-node/blob/master/src/index.ts#L445-L451 Does not handle file:// URLs when checking our outputCache. ESM modules have a URL instead of a path. So source-map-support is unable to get access to the sourcemaps, and stack traces are wrong for ESM modules.
file://
outputCache
Fix is to robustly check for a file URL. If found, convert to a path, then normalize slashes, then lookup in the cache.
Node's url.fileURLToPath should help.
url.fileURLToPath
The text was updated successfully, but these errors were encountered:
Fix #1060
f76dfce
Fix #1060 (#1087)
54d1bfa
* Fix #1060 * fix linter failures * fix lint failure * fix test coverage * fix tests on windows * generous timeout for npm install before() hook hopefully to avoid CI timeouts
Successfully merging a pull request may close this issue.
Reported here: #1007 (comment)
https://github.com/TypeStrong/ts-node/blob/master/src/index.ts#L445-L451
Does not handle
file://
URLs when checking ouroutputCache
. ESM modules have a URL instead of a path. So source-map-support is unable to get access to the sourcemaps, and stack traces are wrong for ESM modules.Fix is to robustly check for a file URL. If found, convert to a path, then normalize slashes, then lookup in the cache.
Node's
url.fileURLToPath
should help.The text was updated successfully, but these errors were encountered: