Skip to content

Stacktrace paths of files are incorrect #15573

@yonitou

Description

@yonitou

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

9.2.0

Framework Version

React 18.3.1

Link to Sentry event

https://alvie.sentry.io/issues/6331603295/events/6247cc7885ab414caa52b1d1abe2b734/

Reproduction Example/SDK Setup

I don't understand why but when I'm having an error, the path of the files in the stack trace are relative instead of absolute.

Image

In the image above, instead of having /libs/web/X/X... I have something like ../../../../libs/web/X/X.... It's like it's going all the way to the root and then going down again.
I tried to use rewriteFramesIntegration but no success

My sourcemaps are, of course, correctly uploaded

Steps to Reproduce

Nothing special

Expected Result

The stack trace path to the file should be from the root

Actual Result

The stack trace path to the file is relative from the actual file

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: reactIssues related to the Sentry React SDK

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions