-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
getsentry/sentry-docs
#14699Closed
Copy link
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
10.5.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
#16981 added Sentry.registerWebWorker(). However, the documentation repeatedly refers to it as Sentry.registerWorker(), which doesn't seem to exist. So do some comments in the code.
Steps to Reproduce
npm install --save @sentry/browser@10.5.0- Create service-worker.ts:
import * as Sentry from "@sentry/browser"; Sentry.registerWorker({ self });
- Attempt to compile it with tsc
Expected Result
No errors
Actual Result
TS2551: Property 'registerWorker' does not exist on type
'typeof import(".../node_modules/@sentry/browser/build/npm/types/index")'.
Did you mean 'registerWebWorker'?
The answer to "Did you mean 'registerWebWorker'?" is yes. But that's not what's documented.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status