Skip to content

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

@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

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions