mh
React app not inferring trpc client correctly
no luck with rc-382 either for me. stuff still gets typed as 'never'. for the moment we are stuck with 10.45.2. I will try to spend some time narrow down the issue a bit more but v11.x seems unusable for us atm.
19 replies
React app not inferring trpc client correctly
no, I use pnpm as well. our project is a turbo mono repo using pnpm. All our types work using v 10.45.2 but moving over to v11.x immediately breaks type inference for us (no other code changes)
19 replies
React app not inferring trpc client correctly
I think you may have the same issue as me https://discord.com/channels/867764511159091230/1296744845305450546/1296744845305450546. I have not found a solution yet but it looks like we have a very similar repo structure. mono repo with a shared package but router type is inferred as
never
19 replies
Types issues upgrading to v11, `never` when using t.router
Weird thing is, if I use
initTrpc
directly in the api
project in the exact same way as in the shared project, the types start working.
Now AppRouterInputs
has correct typing instead of never
We are using typescript 5.6.2, node v22.9.0, pnpm v9.12.0 and have sctrict: true
, also have
5 replies