Skip to content
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

The stack trace is messed up due to ts-node and playwright overlapping in playing with the sourcemap #707

Open
Konubinix opened this issue Aug 9, 2023 · 1 comment

Comments

@Konubinix
Copy link

Hi.

For your information, the fact ts-node and playwright both try to transpile typescript and play with the sourcemap, the stack trace is not reliable.

See for instance the fork I made here https://github.com/Konubinix/cucumber-playwright/tree/show-stack-trace-error

Run npm test

The error is show like this
image

It points to custom-world.ts at line 11, while the error is actually at line 30.

I already pointed out the issue in playwright (see microsoft/playwright#26346). So far, I doubt there is an easy workaround.

Trying to find out how people mitigated the issue, I found out that peolpe apparently did not notice it. So I figured I should warn you.

Hopefully you will help contribute in using playwright in cucumber confortable.

My best,

@Konubinix
Copy link
Author

For your information, a pull request is ongoing to fix that issue.

Also, I added a workaround in case you cannot upgrade playwright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant