Skip to content

TrpcMiddleware types are not compatible with trpc v11 #13424

@captain-hak

Description

@captain-hak

Problem Statement

Hello,
I just implemented trpc v11 in my node project and the only thing that is not working anymore is the types compatibilities between the middleware factory in trpc and the trpcMiddleware handler in sentry.

As stated in this doc from trpc, rawInput in middleware is now a getRawInput.

Is it something that you are aware of?
Are you going to implement the new interface?

Thanks for your help !

Solution Brainstorm

I think the file concerned with this issue is here : https://github.com/getsentry/sentry-javascript/blob/develop/packages/core/src/trpc.ts#L17

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions