-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Wrong line numbers in stack traces when using Node v20 #291
Comments
Filed an issue in Node.js: nodejs/node#49455 |
Should be fixed now. Get the update with |
wow, this was just a tiny bug but it makes such a big difference to the dev experience. Thanks for fixing! |
It seems like this regressed with v3.14.0. Using Node.js 20 the line numbers look right with v3.13.0 but not with v3.14.0 any more. |
@privatenumber Could you please reopen this issue or should I open a new one? |
Unless the repro above is broken with the latest tsx, can you open a new issue with reproduction? |
You are right, the repro above seems to be fine with v4.2.0 on Node.js 20. Very similar issue that I'm seeing with our code, though. I'll figure out a new repro and open a new issue. |
I've filed #404. |
Problem
I was writing a unit test, and noticed that stack traces have the wrong line numbers when using Node v20:
Switch to Node v20, run the test:
Switch to node v18, run the test:
The line numbers in v20 are wrong.
Expected behavior
I would expected Node v20 to work the same as Node v18 and to have the correct line numbers to match where the exception was thrown.
Minimal reproduction URL
https://github.com/thesmart/repro-tsx-line-no
Version
v3.12.7
Node.js version
v20.5.1
Package manager
yarn
Operating system
macOS
Contributions
The text was updated successfully, but these errors were encountered: