-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"Invalid location in sourcemap" for React ErrorBoundary #4012
Comments
Please see: #3853 (comment) |
What does the raw stacktrace look like? What about the actual components that are throwing the error? When I tested with #3532 before, empty class components like: class Wow extends React.Component {
render() {
return <SomeElement />
}
} would have incorrect frames generated by
I think we should definitely figure this out though since Sentry is source code aware, I'm sure there's a way we can "fix" the component stack stack traces. |
Seems like some of the frames are wrong in the raw stack trace too...
For the ErrorBoundary Error, the top two frames' line/column numbers are for the source files, but the file name is the minified file:
I just noticed that the remaining frames are correct:
However, they're being filtered out by the "App Only" filter that's selected by default. Hopefully fixed by getsentry/sentry#28859 |
@AbhiPrasad is this purely an SDK issue? |
This should be fixed, we made some changes to internal source map processing. |
N/A - This is an onpremise installation
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/react
Version:
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:
This is resulting in an "Invalid location in sourcemap" error in Sentry:
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):
The text was updated successfully, but these errors were encountered: