Router type = any in monorepo...
import type { AppRouter } from 'api'
) , the type of AppRouter is any
:/.
I've followed all the steps from the FAQ, but to no avail....Creating Service Layer in Next App Router
trpc/client.tsx
and trpc/server.tsx
, respectively). Since each of these has a unique way of interacting with the trpc endpoint, and the server.tsx
file is "server-only"
and cant be used in my client components, I'm not sure how I can go about making a service layer that is reused between client and server components.
My existing service layer handled the trpc call as well as other conversions to FE models, so I would really like to avoid duplicating this work from client and server components if possible. Does anyone know how I can achieve this?...Stream closed, but it returns the actual data
Cannot set headers after they are sent to the client
I'm trying to get type for queries/mutations returned from trpc use hooks, but they are different

tRPC useQuery waits for all queries—How to render ASAP?
File based structuring, trpc layout
How to wrap response type with useAsyncData from Nuxt?
useAsyncData(() => client.someProcedure.query())
on every call so that I don't double fetch during SSR. Is there a way to make a wrapper client that will wrap query and mutation responses with the useAsyncData()
call? I would love if the client was typed and I could call it the same way I can call the vanilla client.How to define per route staleTime on queryClient?
Can i use a single trpc proxy client in NextJS 12?
[Typescript] Client query/mutate has any type

Trpc V11 Nuxt 4
server side prefetch + optional client side refetch
[Help] Fastify session http only cookie differs
126 routers | TS7056: inferred type node exceeds - Multiple Providers?
How to get cursor in new Tanstack Query integration?
cursor
(or pageParam
) in the new infiniteQueryOptions
function? The current procedure input takes a cursor
but I'm getting and error saying cursor
is not passed to infiniteQueryOptions
, and I can't pass it manually as it is calculated using getNextPageParam
.monorepo can't resolve trpc context
Type error: Property 'Provider' does not exist on type '"The property 'useContext' in your router collides with a built-in method, rename this router or procedure on your backend." | "The property 'useUtils' in your router collides with a built-in method, rename this router or procedure on your backend." | "The property 'Provider' in your router collides with a built-in ...'.
Does anyone have a decent idea or a suggested setup for express backend, nextjs front, and trpc 11? I want a mono so that I can share a lot betyween them + share hooks with future projects. I want express so that I can scale them in AWS. and next pushed through AWS amplify. That's the current idea ayways. This is my experimental project where the dev works but the build fails. This is killing me for over a week now.https://github.com/dsmurl/an-express-next...
Catch the error on trycatch and show the message
operation input is formdata but trpc makes it an application/json POST call
v11 with tanstack mutation not invalidate query
