bugsnag-js
bugsnag-js copied to clipboard
Documentation bug: web-worker does not declare @bugsnag/core as a dependency.
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.