[@sentry/remix] init
method is typed to return void
, but actually returns the client
#13932
Closed
3 tasks done
Labels
Package: remix
Issues related to the Sentry Remix SDK
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/remix
SDK Version
8.33.1
Framework Version
2.12.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
sentry-javascript/packages/remix/src/index.client.tsx
Line 32 in fcc3d2b
sentry-javascript/packages/remix/src/index.server.ts
Line 180 in fcc3d2b
sentry-javascript/packages/remix/src/index.types.ts
Line 13 in fcc3d2b
Steps to Reproduce
I want to use our existing OpenTelemetry setup with Remix.
The guide says to import
init
from@sentry/node
, but that won't set up the Sentry Remix SDK, will it?But if I input
init
from@sentry/remix
, it's typed to returnvoid
even though it actually returns a Sentry client.Expected Result
I can use an existing OpenTelemetry setup with Remix without getting TypeScript compilation errors.
Actual Result
The types are wrong
The text was updated successfully, but these errors were encountered: