-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
Error-stacktrace are wrong when using ts-node + source-map-support #1440
Comments
Probably a duplicate of #1438 |
I will update if it helped. Thanks. |
Update: After upgrading to:
All works great. Thanks! |
You may able to remove the @cspotcode/source-map-support dependency entirely, since ts-node already registers it. |
In production I run js files directly with node so i must register it manually. |
I am experiencing the same issue on Dummy repro import { test } from 'tap'
test('lol', async t => {
t.test('lol1', async t2 => {
t2.pass()
})
t.test('lol2', async t2 => {
t2.pass()
})
t.test('lol3', async t2 => {
t2.equal(1, 2)
})
}) On
On the other hand, on
Any suggestion about how to fix this? note: this might be related to https://github.com/tapjs/node-tap/blob/23c7821213b44e2f85579ea5a244cd4c6ffe35df/settings.js#L6 I was able to fix this issue adding a custom settings to |
A workaround for this has been published in v10.3.0 |
When I downgrade to ts-node
9.1.1
all works great (or run my code without ts-node I get the correct javascript stacktraces).Expected Behavior
correct error-stacktraces
Actual Behavior
Steps to reproduce the problem
Minimal reproduction
I can't share my code because it's private.
I couldn't reproduce this bug easily in a minimal example.
Specifications
The text was updated successfully, but these errors were encountered: