Skip to content

tRPC v10 middleware type error #13857

Closed
Closed
@JoeKarow

Description

@JoeKarow

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.33.0

Framework Version

nextjs 14.2.14

Link to Sentry event

No response

Reproduction Example/SDK Setup

Related: #13795
Introduced in PR #13831

When upgrading Sentry from v8.32.0 to v8.33.0, I get this TypeScript error when initializing the tRPC middleware:
Image

It looks like this may be the culprit, causing a double wrapped promise for tRPC v10.

return async function <T>(opts: SentryTrpcMiddlewareArguments<T>): Promise<T> {

Steps to Reproduce

Add tRPC Sentry middleware.

Expected Result

No TypeScript errors.

Actual Result

Image

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions