-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Important Details
How are you running Sentry?
@sentry/react npm package v5.19.2
Description
Running locally with the latest version of react-scripts and an app generated with create-react-app. I initialize Sentry as follows:
Sentry.init({
beforeSend(event) {
if (event.exception) {
Sentry.showReportDialog({ eventId: event.event_id });
}
return event;
},
dsn: 'my-dsn-info',
release: 'my-release-version-info',
});
When I force an unhandled exception locally, the event successfully fires to sentry and I see it in the issues for my configured project.
The issue I'm having is that nothing related to the user feedback form is being opened or prompted for. I've confirmed that event.exception looks as expected and the showReportDialog function is executed (I put a breakpoint inside it as well and it look like the client information looks as expected).
Steps to Reproduce
☝️
Good items to include here include:
The only stack trace or errors that show is the reference error I'm creating to cause the event to be triggered.
What you expected to happen
The user feedback dialog should show after showReportDialog is called
Possible Solution
🤷♂️ I'm matching the docs exactly and I don't see any issues besides the dialog just isn't showing at all