T
tRPC

โ“-help

what is the best way to update trpc and its dependencies?

CCaptain5/11/2023
Hi all, as the title says, how can i best update trpc and its dependencies? TRPC stands at 10.25.1, but is this @trpc/server or @trpc/client or next, or tanstack?
CCaptain5/11/2023
also what is the best combination of next.js version and trpc version? can i still use trpc with next@13.4.1?
Nnlucas5/11/2023
Itโ€™s rare that either project makes a breaking change Just keep tRPC packages all in line, and if Next does a major update then upgrade with care, and come check if GitHub has any open issues
CCaptain5/11/2023
but how exactly do i update trpc? its not a stand alone package. it works with trpc/client, next and tanstack
Nnlucas5/11/2023
What do you mean? You just use your package manager to update it?
CCaptain5/11/2023
maybe im not understanding something. which one the following do i update? ` "@trpc/client": "^10.18.0", "@trpc/next": "^10.18.0", "@trpc/react-query": "^10.18.0", "@trpc/server": "^10.18.0",`
Nnlucas5/11/2023
All of them, keep them in-line or youโ€™ll have issues
CCaptain5/11/2023
perfect. thnx man care for a chat about trpc and its future with respect to next 13?
AKAlex / KATT ๐Ÿฑ5/11/2023
i usually do
npx npm-check-updates --filter /trpc/ -u
npx npm-check-updates --filter /trpc/ -u
CCaptain5/11/2023
i'll remember that for the future. thnx Katt @alex / KATT can u share your thoughts with me?
CCaptain5/11/2023
but it has been a while since there has been new from you. specially since the appDir is now prod ready and recommended by the next.js team i have seen the 2 links above before btw
Nnlucas5/11/2023
The only thing missing is someone contributing an example project, right?
CCaptain5/11/2023
true but i really dont have the time. im a full time employee. thats why i chose to support TRPC monetarily
Nnlucas5/11/2023
Itโ€™s fair enough, some of the guys are investigating this topic, but the structure is still experimental albeit โ€œstableโ€ so weโ€™re not going to rush it
CCaptain5/11/2023
i mean i wouldnt mind being a contributor but i cant commit any specific amount of time i get that 100. im just very excited about shared layouts in next 13. i dislike the per page layout of previous next versions
Nnlucas5/11/2023
No commitment required, if you have the energy and time at some point any contributions are welcome ๐Ÿ™ Weโ€™ll have some proper advice quite soon Iโ€™m sure
CCaptain5/11/2023
im getting the following error even though im not using the appDir.
info Generating static pages (0/3)TypeError: Cannot read properties of null (reading 'useMemo')
info Generating static pages (0/3)TypeError: Cannot read properties of null (reading 'useMemo')
AKAlex / KATT ๐Ÿฑ5/11/2023
I think that's a bug in nextjs tbh Looks familiar to when I tried to bump nextjs Downgrade nextjs a minor version or two and see if works
CCaptain5/14/2023
i did. turns out i was updating packages incorrectly with nx monorepo @Nick Lucas i really want to start using the next13 app dir and shared layouts. I say let me take a crack at building a example Are u ok with giving me guidance?

Looking for more? Join the community!

T
tRPC

โ“-help

Join Server
Recommended Posts
Where i can read a journal about tRPC ?I use tRPC for my Final Task in my Bachelor Degree, but i can't found journal about tRPC. Can anyoneDefault Query Function to resume paused mutationsI'm building a React Native App with an offline mode. I implemented a PersistQueryProvider and a buiSuperJSON is wrapping results in type with keys "json" and "meta"How can I modify the transformer in SuperJSON library to only return the "json" property and ignore Caching(?) previous data until query returns new datawhen I update my useQuery inputs with new filters it instantly sets the data to `undefined` while thHow to upload file not use S3 Next js? Please, examplefile: course.router.ts / import { CourseSchema } from "~/schema/post.schema"; import { createTRPChow can i send a request to specific route in trpc server, after mutation ?i am using trpc with next js ,Help in deploymentHey all, I am building an app which is having a 1 . vite-react frontend 2 . trpc-standalone how to persist the query client?I want to persist the trpc query client cache, but don't want to create a new query client, I want tHow to infer type of a nested object from app router output?I have a tRPC router than returns a nested object through a db query. It looks like this: ```ts ILeWhat's the type of errorFormatter parameterI wanna know how could i get the type of the errorFormatter parameter, so i can move the errorFormattRPC works only for monoliths environment?How can I works if typesafe in real time with a remote server? ๐Ÿค”How to use createCaller() with lambda for testing?Has anyone successfully mocked a trpc caller that uses the AWS Lambda integration? trying to write sis there a way to call useQuery() from a callback and get the return value within that callback?I have a generic component that is effectively an autocomplete that fills in options from a web requUsing Response with the Next App RouterThe route handlers in the App Router, only receive the Request object, requiring you to use a ResponThe only way to access useQuery options without input is passing undefined to it?Is there any other way? seems strange pass undefined to the input queryHow can I access the trpc context in zod's refine function?To do something like ```ts create: myProcedure .input(myInputSchema.refine(async ({ slug }, ctx)Set Request Headers for individual requests?Hello everyone, I have a simple question, can you somehow add headers to the individual requests insGet undefined when the refetch function has successfully workedIn my use case, I first disabled the useQuery function because I want it only fetch when I want to. Having trouble to import my AppRouter in my react clientEnvironment: Node v18.15.0 I created my TRPC router in my express app and exported it how -documeArgument of Type not assignableSeeing the following error while trying to establish a connection with the trpc server from the clie