Skip to content

Sourcemaps point to wrong line number in Cypress in TypeScript version 5 #28483

Closed
@jennifer-shehane

Description

@jennifer-shehane

Current behavior

Sourcemaps point to the wrong line number in some version of TS 5.

*Note: There were some earlier reports of the stack trace not displaying at all in an error, but this was never reproducible.

Desired behavior

In order to get sourcemaps to work we have to do some monkeypatching to force the sourcemap options to generate them the way we expect. There's likely something that's changed in some version of TS 5 here.

Test code to reproduce

TS code - don't have repro

Cypress Version

13.6.1

Node version

18

Operating System

Mac

Debug Logs

No response

Other

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions