T
tRPC

❓-help

tRPC won't return route with function, only JSON

PPaddy1/12/2024
Hey all, Why can I go to route 'test' and the 'This is a test!' is being returned, but when I try to go to another router called 'posts' it returns this big error, 404, meaning that it doesn't even exist, right? While the function does exist, what is it exactly looking for what I don't have? Would love to hear from someone! 🙂 Best regards.
No description
No description
No description
Nnlucas1/12/2024
Probably because posts is a router and not a procedure, what procedures does it have on it?
PPaddy1/12/2024
Hey @Nick Lucas Thank you so much for your reply, I couldn't reply earlier, sorry. I atteched two screenshots, hopefully this gives you an idea of what it has, please let me know if this is what you asked.
No description
No description
Nnlucas1/12/2024
So it's posts.getPosts then?
PPaddy1/13/2024
Yes, haha, thank you!

Looking for more? Join the community!

Recommended Posts
tRPC 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) => { ... }