peterkyle01
peterkyle01
TTCTheo's Typesafe Cult
Created by Renzel on 5/1/2024 in #questions
Serverside api call - uploadthing
The upload button will still be on the client side which is the current state,if you find the upload button loading state unbearable you can use their ssr plugin to prevent that
2 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc resource: the server responded with a status of 500 I'm really confused
Your UserChecker is returning the string fffffff instead of a json like { message : " user exists "} before even checking anything
4 replies
TTCTheo's Typesafe Cult
Created by MALEV0L3NT on 4/30/2024 in #questions
Next.js app router with dynamic routes and trpc weird behaviour
since we are taking data from the url in this case the id,it is by default a string so we need to convert it to a number in order to use it
5 replies
TTCTheo's Typesafe Cult
Created by Fagner on 4/20/2024 in #questions
shadcn's form with uploadthing sdk
Do you have your schema with image as type of file and are you using controlled components provided by react hook form to get the file data and pass it to shadcn form data
7 replies
TTCTheo's Typesafe Cult
Created by botabota on 4/30/2024 in #questions
Cannot catch or log error, onUploadError
You are trying to upload a bigger file of 11mb that surpasses the maximum size allowed of around 4mb.Try disconnecting from the Internet with the right image size and see if you get the toasts or logs
5 replies
TTCTheo's Typesafe Cult
Created by Neffrey on 4/30/2024 in #questions
Error with tRPC & Drizzle with numeric data type
You should add the userId to your input schema too
11 replies
TTCTheo's Typesafe Cult
Created by yitito on 4/24/2024 in #questions
error: column "trailer_id" cannot be cast automatically to type integer
on inspection table you have trailerId an integer which references Id a serial from trailer table ,either make them all an integer or a serial
2 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/27/2024 in #questions
Module not found: Can't resolve './utils/createUtilityFunctions.mjs'
Try upgrading your trpc version
3 replies
TTCTheo's Typesafe Cult
Created by Ibnu Rasikh - creatypestudio.co on 4/27/2024 in #questions
Fail to try beta version of Typescript because @t3-oss requirement
change your devDependencies Typescript version instead of the peerDependencies if you want to use Typescript 5.0.0-beta in your project
3 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
try to await api.auth.IserChecker.useMutation() or do await App.mutate( Data)
12 replies
TTCTheo's Typesafe Cult
Created by stimw on 2/9/2024 in #questions
RSC or api folder?
You probably need it for like trpc or authjs but really no other usual case ,just RSC will do
3 replies
TTCTheo's Typesafe Cult
Created by robertinio on 11/7/2023 in #questions
Suspense with TRPC server query
Try const { buildings, isLoading } = await api.building.... then before return statement: isLoading ? return <div>Loading</div> : return <>// your component </>
6 replies