Skip to content

The on-by-default sendClientReports option breaks Web Workers #3992

Closed
@mariyan-borisov

Description

@mariyan-borisov

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

6.13.0

Description

My service worker registration fails because document is not available in service workers:

Uncaught ReferenceError: document is not defined

I consider this a breaking API change. This option should either be off by default, or it should not break Web Workers.

Metadata

Metadata

Assignees

Labels

Package: browserIssues related to the Sentry Browser SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions