getsentry/sentry-replay

Error on angular 12 after add new Replay to integrations array

Closed this issue · 2 comments

Environment

"@angular/core": "12.1.2",

node v15.14.0
npm 7.7.6

What version are you running? Etc.

"@sentry/angular": "7.19.0",
"@sentry/replay": "0.6.13",
"@sentry/tracing": "7.19.0",

Steps to Reproduce

  1. Followed the tutorial, I added the new BrowserTracing plugin and got my first report, then I added new Replay

Expected Result

No errors on compile.

Actual Result

image

Maybe related to microsoft/TypeScript#41883
Reading the tread I was able to get it run with:

const sentry = require('@sentry/replay');

new sentry.Replay({....

Too bad this don't work on electron apps or apps served by non-public urls.