bugsnag-js icon indicating copy to clipboard operation
bugsnag-js copied to clipboard

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

Open subdavis opened this issue 1 year ago • 1 comments

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.

subdavis avatar Jul 24 '24 20:07 subdavis