Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/browser
SDK Version
7.24.2
Framework Version
React 16.14.0
Link to Sentry event
No response
Steps to Reproduce
npm install @sentry/browser @sentry/replay
Sentry.init({ dsn: process.env.SENTRY_DSN, replaysSessionSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, integrations: [new Replay()], });
Expected Result
No crash
Actual Result
Application crashing with this error : Uncaught TypeError: debounce.default is not a function
The error is triggered in @sentry/replay/cjs/replay.js line 109:
this._debouncedFlush = debounce.default(() => this.flush(), this.options.flushMinDelay, { maxWait: this.options.flushMaxDelay, });
It should be instead :
this._debouncedFlush = debounce(() => this.flush(), this.options.flushMinDelay, { maxWait: this.options.flushMaxDelay, });
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/browser
SDK Version
7.24.2
Framework Version
React 16.14.0
Link to Sentry event
No response
Steps to Reproduce
npm install @sentry/browser @sentry/replaySentry.init({ dsn: process.env.SENTRY_DSN, replaysSessionSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, integrations: [new Replay()], });Expected Result
No crash
Actual Result
Application crashing with this error :
Uncaught TypeError: debounce.default is not a functionThe error is triggered in
@sentry/replay/cjs/replay.jsline 109:this._debouncedFlush = debounce.default(() => this.flush(), this.options.flushMinDelay, { maxWait: this.options.flushMaxDelay, });It should be instead :
this._debouncedFlush = debounce(() => this.flush(), this.options.flushMinDelay, { maxWait: this.options.flushMaxDelay, });