T
tRPC

Looking for an up to date boilerplate for tRPC & Fastify.

Looking for an up to date boilerplate for tRPC & Fastify.

BBillyBob11/14/2023
Looking for an up to date boilerplate for tRPC & Fastify.
BBillyBob11/14/2023
thanks! I am having a nightmate with TS at the moment and imports. Are you competent in that area
DDxD11/14/2023
well...what's the problem ?
BBillyBob11/14/2023
sorry. ambiguous questions from me. Im going to restart using the template you sent above which looks nice and hopefully i dont get the errors again is that yours by the way ?
DDxD11/14/2023
ok nope i don't use Fastify
BBillyBob11/14/2023
express? or nest
DDxD11/14/2023
express
BBillyBob11/15/2023
Hey are you about? The problem i had is with importing from index.ts within a subfolder and i get the error Error: Must use import to load ES Module
DDxD11/15/2023
I need more details Or some cod
BBillyBob11/15/2023
https://github.com/lwears/moviedb when running npm run dev an issue with the importing from the folder routes it seems to be due to type: modulein package.json but when i remove that i get an error with superjson
DDxD11/15/2023
Have u try a npm install ?
BBillyBob11/15/2023
of course seems to be related to this https://github.com/blitz-js/superjson/issues/268 i get that error when removing type: module from package.json
DDxD11/15/2023
Ok, now I am not on my pc I will try this code when I am at my pc And try to find a solution
BBillyBob11/15/2023
thanks
DDxD11/15/2023
Is nice the project cuz I see there a way of doing auth with token And I’ve need trying for days to implement it
BBillyBob11/15/2023
i got it working thanks for your help

Looking for more? Join the community!

T
tRPC

Looking for an up to date boilerplate for tRPC & Fastify.

Join Server
Recommended Posts
Can You Provide Guidance on Implementing RBAC and Share GitHub Examples?I am currently exploring the implementation of Role-Based Access Control (RBAC) and am seeking your `useQuery` not working?is it just me or does `useQuery` not work in my next js components? i try to call it and it says cliServer Component Call to TRPC on express backendI have following structure: - Nextjs App folder with both client components and server components - Can set cookie with trpc?I tried to create a full authentication system in trpc using jwt and refresh token I find that is notrying to understand how this worksso i'm looking at the t3 template that was made for me, and there seems to be a `trpc` folder that ccan't call nested routethis is the top level router: ```ts const appRouter = router({ hello: procedure.query(() => 'heltrpc authDid someone create a full auth system in trpc (with next js trpc react query prisma,jwt token, refreDifference between createTRPCNextAppDirServer, createTRPCNext and createTRPCProxyClient?Hey everyone. I struggle to understand the difference between these 3 TRPC functions when it come tWhat is the mutation error type?In the provider I want to set onError for all mutations: ```ts new QueryClient({ defauMerging two clients into oneI have two clients. One for react-query for client components and one for server components. I wannaIs it possible to only use WebSockets when necessary, otherwise use httpbatch or http?I have an application, and on certain pages I need live data. Is there a way to only have tRPC open Zod transform typesI have a zod type for our backend requirements that looks like this: ```javascript const ZCustomTypeuseQuery in App Router?I have a client component that I want to use useQuery in like in pages router, but only `query` is aTranform output data using middleware after handler has run - possible?As the title says, been trying for a couple of hours to modify the return type of the data using midCan we configure cache on a per-request basis?Hi! I’m a big fan of tRPC! I’ve been using it for quite some time. I actually have 2 questions: ## Error in tRPC with Clerk in t3-app routerHi guys, im trying to implement clerk auth in t3 app router. But it gives me this error when im tryiError when converting string from router.query to prisma DB enumHey yall, I'm working on a Next.js application using tRPC and Prisma, and I've encountered an invaliNext.js tRPC router separated to edge-runtime and node-runtimeI would like to separate server into two runtimes - most things can run on edge-runtime, but I have [How To?] Create a record in database on form submission...I have an application using trpc, Cloudfare D1 database, and trpc. I am trying to use a tamagui forHow to obfuscate data via transformerEnd user with adequate knowledge can easily copy JSON data in plain text from network requests in br