getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
8.02k stars 1.59k forks source link

ReferenceError Can't find variable: createImageBitmap #14380

Closed pahuta closed 5 days ago

pahuta commented 5 days ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

7.114.0

Framework Version

17.0.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

Sentry.init({
    dsn: config.SENTRY_DSN,
    integrations: [
      Sentry.browserTracingIntegration(),
      Sentry.replayIntegration({
        minReplayDuration: 1000,
        networkDetailAllowUrls: [
          config.API_URL,
        ],
        networkCaptureBodies: true,
        maskAllText: false,
        maskAllInputs: false,
        blockAllMedia: false,
      }),
      Sentry.replayCanvasIntegration(),
    ],
    tracesSampleRate: 0.2,
    replaysSessionSampleRate: 0,
    replaysOnErrorSampleRate: 1.0,
  });

Steps to Reproduce

I see a lot of "ReferenceError Can't find variable: createImageBitmap" Image Image

Expected Result

From my point of view, Sentry should check if createImageBitmap defined before call it.

Actual Result

ReferenceError Can't find variable: createImageBitmap

mydea commented 5 days ago

Hello, this should be fixed on the latest version (8.x). Please update your SDK, if you still encounter the problem feel free to reopen this issue!