utdev
Explore posts from serversTTCTheo's Typesafe Cult
•Created by utdev on 10/17/2024 in #questions
Shadcn Dialog close issue
I am using Inertia with react, there is a checkbox in my dialog if that is checked the dialog should not close, but the inputs should be cleared so the user can keep adding users, but my dialog always closes even if I set the checkbox.
I am confused why this does not work.
2 replies
TTCTheo's Typesafe Cult
•Created by utdev on 8/1/2024 in #questions
Expose API endpoints to other apps
If I built an app with the t3 stack, how can I expose my api so other apps can use my auth logic or
2 replies
TTCTheo's Typesafe Cult
•Created by utdev on 3/24/2024 in #questions
Nextjs image config?
I get this error:
What am I missing on the next.config.mjs:
4 replies
TTCTheo's Typesafe Cult
•Created by utdev on 1/22/2024 in #questions
Check for string to not be empty?
Not sure why I am struggling with this right now:
Is there a better way of checking if the data is not set, unfortunatly I get the ResponseError if I pass empty strings.
7 replies
TTCTheo's Typesafe Cult
•Created by utdev on 1/9/2024 in #questions
Nextjs 14 build issue
I get this weird error running the build command on next 14:
6 replies
TTCTheo's Typesafe Cult
•Created by utdev on 1/7/2024 in #questions
Trigger button click on useEffect
I am trying to trigger my button so my Sheet shows up, but it currently does not work on refresh, if I log the sheet in my useEffect it correctly contains the node and it also goes inside the if condition:
4 replies
TTCTheo's Typesafe Cult
•Created by utdev on 1/7/2024 in #questions
Update route info on click
I have a button which opens a slider (sheet component) from the right side. I also would like to update the route once clicked on it, since I am not opening a page.
Currently I am doing this on button click
But that does not quiet work, it does not open the sheet anymore, seems like it tries to go to the page.
How can I make this work?
Also what do you think of this behavior is it fine to update the route even if I am not changing the path?
11 replies
TTCTheo's Typesafe Cult
•Created by utdev on 12/11/2023 in #questions
VsCode use path defined in tsconfig paths?
Is there a way that Vscode automatically imports the files using the paths defined in my tsconfig?
It currently does not work and it imports paths like this:
I always have to update them manually in order to get this:
2 replies
TTCTheo's Typesafe Cult
•Created by utdev on 12/10/2023 in #questions
Serial postgres issue
Anyone have this issue?
Shouldn't serial work?
I am doing this
2 replies
TTCTheo's Typesafe Cult
•Created by utdev on 10/9/2023 in #questions
Should I use Promise.all? When should I use it
Hi I am not sure if I should use a promise all in a case like this:
Does it make sense to use it here?
6 replies
TTCTheo's Typesafe Cult
•Created by utdev on 7/29/2023 in #questions
turbo repo package not found
I added a new turborepo package in my turbo repo repository, but I get this error:
I added the
@acme/validation
package. It contains an index.ts
file which exports all files inside /src
.
Do I need to update anything else?3 replies
TTCTheo's Typesafe Cult
•Created by utdev on 7/16/2023 in #questions
Help adding trpc-openapi to t3 app
Hi, can anyone help adding https://github.com/jlalmes/trpc-openapi properly to my existing t3 app?
So far I have this
Here: server/api/openapi.ts
And I added this sayHello example route to my router:
But I am confused, how I should resume and actually start it
20 replies
TTCTheo's Typesafe Cult
•Created by utdev on 6/16/2023 in #questions
Call route within route in server
How can I call a route in a different route. For example I have this route:
I want to call that create function in a different route like this:
But that does not work, any ideas?
6 replies
TTCTheo's Typesafe Cult
•Created by utdev on 6/4/2023 in #questions
useMutation param syntax
Hi guys, I forgot how to add specific params / input to my useMutation, how can I do that for example here:
6 replies
TTCTheo's Typesafe Cult
•Created by utdev on 5/27/2023 in #questions
Prisma zod enum validation
I have this prisma schema:
And this zod validation:
5 replies
TTCTheo's Typesafe Cult
•Created by utdev on 5/14/2023 in #questions
S3 File Upload
Anyone got an idea what I am missing here:
And this is my api route:
But my req.body keeps returning undefined, any ideas?
I am using the v3 package:
aws-sdk/client-s3
4 replies
TTCTheo's Typesafe Cult
•Created by utdev on 4/6/2023 in #questions
Deploying on Vercel, tailwind classes missing?
Does anyone have issues with deploying on vercel?
Right now my app is deployed but my tailwind classes have no value, which is why my page looks wrong.
Locally it looks fine with the dev and build command
46 replies
TTCTheo's Typesafe Cult
•Created by utdev on 3/25/2023 in #questions
Invalid environment variables
I have following env var in my .env file:
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=xxx
In my schema.mjs
I have following:
and my client.mjs
looks like this:
But I get this error:
2 replies
TTCTheo's Typesafe Cult
•Created by utdev on 3/9/2023 in #questions
react-hydration-error using different browser?
I am trying a different browser right now called Sidekick, accessing my localhost returns this error:
I was kind of confused since it worked earlier so I tried it again on chrome. Seems like the app works fine on chrome but not on sidekick.
Is this really related to the browser?
23 replies
TTCTheo's Typesafe Cult
•Created by utdev on 3/4/2023 in #questions
Prisma schema delete many to many
Hi, I have some troubles deleting a many to many relationship / data. Currently it says:
This is the related schema:
4 replies