Nate
TTCTheo's Typesafe Cult
•Created by BILLY on 8/12/2023 in #questions
Lucide react
can you go to that folder and make sure that it both exists and is downloaded? if you're using onedrive, it might not be downloaded unless you tell it to. in general, you shouldn't use onedrive for this reason, and use git to backup and source control your repo
5 replies
TTCTheo's Typesafe Cult
•Created by Slamerz on 7/25/2023 in #questions
Prod and Dev rendering differently
you could be using some kind of conditional render or something? you could also inspect element on either site and see what the markup is
8 replies
TTCTheo's Typesafe Cult
•Created by Slamerz on 7/25/2023 in #questions
Prod and Dev rendering differently
can you post the code for the components?
8 replies
TTCTheo's Typesafe Cult
•Created by vgnxjhd on 7/20/2023 in #questions
what's adding the semicolons?
also if prettier isn’t set as the ts/tsx formatter in settings.json
7 replies
TTCTheo's Typesafe Cult
•Created by vgnxjhd on 7/20/2023 in #questions
what's adding the semicolons?
if you’re in vscode using the prettier extension, you can go to the output tab and on the drop-down select prettier. this will tell you which prettier is running (i.e. if you have prettier installed globally and in your project dir, it could be using the wrong one), and it will tell you which prettier config it’s using
7 replies
TTCTheo's Typesafe Cult
•Created by MagerX on 7/22/2023 in #questions
Opinion on DX of this code, is it too confusing or easy to grasp?
i’m not sure where
makeEnum()
comes from, so it might be better, but I’ve been using zod’s enum like const roles = z.enum([“User”, “Admin”, “Owner”])
4 replies
TTCTheo's Typesafe Cult
•Created by zublar on 7/22/2023 in #questions
Custom server setup with t3 (Express, socketio, puppeteer...)
what are you trying to do? ct3a is easiest if you host serverless, so there’s not really an expectation of a persistent server. the server functions you might be thinking of might be able to be simple trpc routes
3 replies
TTCTheo's Typesafe Cult
•Created by Froxx on 7/19/2023 in #questions
Single source of truth for models using Zod and Prisma
okay yeah fair enough then, idk of anything that would do what you're describing. however i'm not sure how such a library would generate zod objects with
.min(5)
for example, if that fact is not represented in the prisma schema. but if you find something to this effect (like maybe you define it with an object from their library?) then kindly @ me6 replies
TTCTheo's Typesafe Cult
•Created by Froxx on 7/19/2023 in #questions
Single source of truth for models using Zod and Prisma
this is actually a good chatgpt task. it’s really good at this, and the zod objects are really easy to read so you can verify that what it gives you is good
6 replies