Skip to content

"Invalid location in sourcemap" for React ErrorBoundary #4012

Closed
@Daniel15

Description

@Daniel15

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/react

Version:

6.13.2

Description

The stack trace for the React error boundary appears to be using the minified file name, but the line numbers from the source map? at least when I test with the browser devtools open:

image

This is resulting in an "Invalid location in sourcemap" error in Sentry:
image

The regular (non-ErrorBoundary) exception is fine and the code is shown correctly, apart from saying "crashed in non-app" even though it IS app code, which is something else I need to figure out):

image

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions