Missing dsn option in showReportDialog call

Hi, I am getting the error missing dsn option on showReportDialog call and I can’t really seem to figure out why. The dsn is set with Sentry.init and I’ll add some (edit: one since im new) pictures showing the use of showReportDialog.

Since I could only post one picture:
onClick={() =>
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore – IGNORED DURING CONVERSION: TS2345: Argument of type ‘null’ is not assignable to parameter of type ‘string’.
Send feilrapport

Solution: dsn: Sentry.getCurrentHub().getClient().getDsn(),

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.