You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @JoeKarow, we had to make the middleware async due to the changes in v11, you can update your code like this:
constsentryMiddleware=Sentry.trpcMiddleware({attachRpcInput: true});// and then wherever you attach itconstprocedure=t.procedure.use(asyncopts=>sentryMiddleware(opts));
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:
It looks like this may be the culprit, causing a double wrapped promise for tRPC v10.
sentry-javascript/packages/core/src/trpc.ts
Line 40 in febdfc6
Steps to Reproduce
Add tRPC Sentry middleware.
Expected Result
No TypeScript errors.
Actual Result
The text was updated successfully, but these errors were encountered: