Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions