NEO
NEO2y ago

Can't get client to work

Hi, I can't get my client to work I'm using Next.js but I have also tried the React method from the docs. mutations and query property is missing.
3 Replies
NEO
NEO2y ago
Postman is working fine
julius
julius2y ago
what do you mean missing, is there no useQuery on the fetchAssets? Also, if you're using next.js why are you creating a standalone http server?
NEO
NEO2y ago
Yeah, there’s no useQuery on fetchAssets and I’m using standalone because we have other dependencies and event streams that only work in standalone environment Fixed it! @trpc/client version was mismatched it was on proxy-beta.10 upgraded to latest Closing post
More Posts
Request context inside middleware?Hi, Is it possible to get the request context inside a middleware somehow? I'm trying to migrate data becomes never[] when destructuring with a fallback valueCurrently it doesn't seem possible to set a fallback value on a destructured `data` property, for exSyntaxError Unexpected token u in JSON at position 0 with mutationsI'm trying to use trpc client to await a mutation and just keep getting this error. everything worksLosing the type between the client and serverHello everyone, I am new to tRPC and the magic of types in typescript so I am looking for ideas as tMobile app with tRPCWhat's the suggested way of working with tRPC when it comes to mobile apps? How do you ensure that yHow to use trpc react hooks from an external data sourceHi, I have a monorepo, nextjs and keystone cms. The cms has trpc running, and I managed to get it coV10. How to infer types on V10?https://trpc.io/docs/v9/infer-types I am trying to infer types to use the inputs on my yup forms iNextJS & Keystone CMS, issues when connecting both in a monorepoHello everyone, so I have a monorepo with NextJS and keystone cms, both are running trpc v10beta.15Best practices for implementing an offline applicationHey there! I'm building a full stack react-native app with Expo and a tRPC backend. I'd like for thisomehow when move typed function out of the router files, frontend infer type to be any ?this is inferred corrected since they are in the same file. ``` getX: t.procedure.query(() => { ret