Skip to content

Documentation bug: web-worker does not declare @bugsnag/core as a dependency. #2175

@subdavis

Description

@subdavis

Describe the bug

According to this documentation, Bugsnag web worker can be used standalone, but it requires install of @bugsnag/core as well.

https://docs.bugsnag.com/platforms/javascript/web-workers/

Steps to reproduce

Attempt to run typescript compiler on documented example code.

  Bugsnag.start({
    apiKey: '',
  })

produces error because of missing type defintions from bugsnag core.

Object literal may only specify known properties, and 'apiKey' does not exist in type 'WorkerConfig'.

Environment

  • Bugsnag version: 7.25.0

Example code snippet

See example code above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs discussionRequires internal analysis/discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions