showReportDialog not working


When I call Raven.showReportDialog(); it does not work, gives me this error
RavenConfigError {name: "RavenConfigError", message: "Missing eventId"}

This is my config

let sentryKey = 'KEY';
let sentryApp = 'APP_NUMBER';
let sentryURL = 'https://' + sentryKey + '' + sentryApp;

Raven.config(sentryURL, {
  release: _APP_INFO.version

What am I doing wrong?


You can only call it after an event has been generated. If you’re generating that event on, e.g. the server, you need to pass the eventId into the options dict:

Raven.showReportDialog({eventId: ...})