T
tRPC

โ“-help

No typesafety after migrating to 11?

DDiamondDragon1/13/2024
Not sure what happened when upgrading from 10 to 11. tried deleting node modules and lock file and reinstalling. I'm using the AWS adapter I notice the .create() is typed as any, and therefore t is any
No description
Jjulius1/13/2024
Can you post your tsconfig here as well as typescript version?
DDiamondDragon1/13/2024
Gist
tsconfig monorepo
tsconfig monorepo . GitHub Gist: instantly share code, notes, and snippets.
Jjulius1/14/2024
where do you see the error and what configs does that extends? i'm guessing packages/trpc
Jjulius1/14/2024
tried to reproduce here: https://github.com/t3-oss/create-t3-turbo/pull/841 (i didn't know what the core lib did so that's not part of this inference works for me, I do get a cannot be named without a reference to ... error for createCaller though, which I'll look into fixing. But everything else works. Can you create a reproduction of this in a public repo?
No description
AKAlex / KATT ๐Ÿฑ1/14/2024
we know there might be some problems like this! please open an issue with a reproduction repo, @DiamondDragon ๐Ÿ™ ๐Ÿ™
DDiamondDragon1/14/2024
@Alex / KATT ๐Ÿฑ @julius hmm I actually think it's due to the Biome extension. on a fresh t3-turbo repo you get these errors but once i turn off Biome and restart it goes away and works as expected. I'll open an issue. Stackblitz doesnt have node 20.10 so can't make a repo there (it has extensions) and codesandbox doesnt have extensions built in, so ill describe it
No description
No description
Jjulius1/14/2024
I wonder why Biome would mess with typescript stuff Is the type actually any if you hover it or is it just the linter getting the wrong types resolved
DDiamondDragon1/14/2024
yeah it's typed as any and when hovering the imports it just says "import xxx"
Jjulius1/14/2024
Sometimes ESLint also lies and says somethingโ€™s any even when it isnt, but thatโ€™s usually solved with a restart of the eslint server Just in Stackblitz?
DDiamondDragon1/14/2024
Stackblitz is stuck on Node 18 so i had issues trying to use the turbo repo there. maybe ill try a normal server/client trpc repo. let me look for one
DDiamondDragon1/14/2024
I'm unable to reproduce it . I'm tracking it here but not having type issues https://github.com/austinm911/trpc-inference-issues. If i get more insight i'll try to repro it and make an issue. I also forked your pr https://github.com/austinm911/create-t3-turbo/commit/9d09f8016f3b681f64cde1a20698553e35840385 , having issues getting biome to work so not too sure

Looking for more? Join the community!

T
tRPC

โ“-help

Join Server
Recommended Posts
is there a way to send a streaming responseI'm not talking about batching multiple requests, but more of a one-way websocket-like channel betweError: Tried to access "$types.__endpoint" which is not available at runtimeHi all! I'm new here, so I hope i'm posting this in the right place. I'm trying to use tRPC using fitrpc output dates are typed as strings and not datesI'm using superjson as a transformer. When I query my data, it shows that fields that should be dateTRPC v10 to v11 - change logs locationWhere can I read the changlogs from v10 to v11? I have seen the migration guide, but no clear list tRPC won't return route with function, only JSONHey all, Why can I go to route 'test' and the 'This is a test!' is being returned, but when I try ttRPC router won't return, unless it's just json.Hey all, Why can I go to 'test' and the 'This is a test!' is being returned, but when I try to go tHow to make trpc output return strings and not datesI am **not** using superjson I would like for all of my trpc routes to return dates as strings. HowCannot read properties of undefined (reading 'input')login: trpc_1.publicProcedure.input(loginInput).mutation((opts) => __awaiter(void 0, void 0, void 0,Extending the client with "virtual" proceduresI'm hoping to write a virtual mutation which runs on the client and calls some other client-side apiDynamic Server Usage Error from RSC callsposted this on the create-t3-app server as well but not quite sure if the issue is T3 or TRPC relateNode 20, NPM: Send form values to DB with tRPC?Hey all, anyone in here with some tRPC experience? I have been going through YouTube video's and thGetting type error in v11 when trying to instantiate createTRPCQueryUtils```Type 'CreateTRPCReactBase<CreateRouterInner<RootConfig<{ ctx: object; meta: object; errorShape: DLoggerLink logging only via server logger in prodI have a logger link setup as declared in https://trpc.io/docs/client/links/loggerLink#usage ```ts Better error tracing when using TRPC routersHi, I'm using a trpc router and noticed that the error trace report is more or less non existent as client side Validation with ZODwill trpc validate input on the client before sending it to the server ?We're having some serious Intellisense performance issues with v10Hello. We have about ~30ish routers in `mergeRouters` (we're working on changing this to a namespaceParsing FormData on trpcHi all, I have function to put object on S3 const putObjectToS3 = async (body: FormData) => { ... }TRPC to connect a client app with a backend apigateway ?Hi everyone! Is it a good practice to use TRPC to connect my client application (Next.Js) with my bWebsocket server implementations with TRPC createWSClientIs anyone aware of a websocket server that is compatible with trpc websocket client that isn't usingAdvanced Permissioning In MiddlewareI need to handle somewhat complicated permissioning logic, for example: `User A can read (but not