showReportDialog not working

Hi,

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 + '@sentry.io/' + sentryApp;

Raven.config(sentryURL, {
  release: _APP_INFO.version
}).install();

What am I doing wrong?

Thanks

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: ...})