Skip to content

How does the URL in the stack trace get decided and where does it come from? #430

@GigEth

Description

@GigEth

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

Ever since upgrading to Webpack 5 and the newest version of the Sentry Webpack plugin, the stack trace has started to show a URL as the file name:

Screenshot 2023-10-27 at 15 17 53

If I click this, the URL goes to a location underneath my assets folder but since the assets are minified, this location doesn't exist.

On the older version of the Sentry Webpack plugin and with Webpack 4 (on another project I have which hasn't been upgraded), it looks like this:
Screenshot 2023-10-27 at 15 25 21

How are you getting stuck?

What exactly is this URL? Where does it come from? How can I change Sentry so that the URL either points to an accessible location or doesn't show up at all as was the behaviour before I upgraded Sentry and Webpack?

The URL I am taken to is like: https://assets.my-project.com/my-app/1.0.0/project-name/src/Utilities/formatNumberAsCurrency.ts. This doesn't exist. What does exist is a URL like: https://assets.my-project.com/my-app/1.0.0/main.js. So can I get this URL to point there instead? Would I want it to point there?

Where in the product are you?

Issues

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions