Theo's Typesafe Cult

TTC

Theo's Typesafe Cult

Join the community to ask questions about Theo's Typesafe Cult and get answers from other members.

Join

shadcn/ui is not really working ,it's rendering the elements but the styles are not there

The settings code: https://paste.gg/p/anonymous/1c892ec175414194b78aabc303312bc8 If any more information, please tell me what you need...
Solution:
This is the file structure

Uploading multiple files at once using uploadthing

Hey i currently set up uploadthing on a website to upload productImage, however, products might have more than 1 image and the UX of having to pick each of the images one after the other one has finished being uploaded seems not so fun So i wanted to ask if it was possible to upload multiple files at once in uploadThing, thank you....

[tsup] making a package

```ts Error: Command failed: taskkill /pid 13244 /T /F ERROR: The process "13244" not found. at ChildProcess.exithandler (node:child_process:419:12)...

Prisma postgres DB not updating

Hello guys. I'm working on auth for my nextjs app built with nextauth and prisma. Initially, I created the project using a local sqlite db and everything worked properly. But when I switched to a postgres db with railway.app it stopped working properly. When I make a post request to create a new user account from Insomnia(an API Client), the db updates with the new user. But when I make that same request through the sign up form UI, the db doesn't update even after the fetch request returns an ok response....

Anyone know how to check non-blocking migrations?

I'm trying to use drizzle and looking for a way of basically saying, can i directly push this schema change without issues. essentially a dry-run push

Lucide react

Keep getting this error, never had a problem with this package a day in my life...

Upstash ratelimitting + trpc

In my project I use upstash/ratelimit (pretty much directly copy / pasted from the how-to) and trpc in my nextjs app. Right now, when people hit the ratelimit I get a TRPC error that says "Unexpected end of JSON" because upstash ratelimitting just redirects to this page (again straight from the tutorial) ```ts import type { NextApiRequest, NextApiResponse } from "next"; ...

add install/open app prompt

How can i add the install/open app promp thingy at the top to a website?

Good way to cache database query results?

Like is using just setinterval to variable that queries database enough. And then return that variable on get request. Variable would run to query let's say once a minute.

error authorize Type , hash unsafe assignment

error 1 : at line 1 error 2: at line 16 the code : https://paste.gg/p/anonymous/5c7d66da21344c619ac307b9b6ab01b3...
Solution:
error 2. Has be fix

TypeScript complaining even the code is correct?

```typescript type TradeSummary = Record<string, { symbol: string; datetime: string; realizedPnl: number;...

Issues with graphql mutations

Hey guys, having some issues with graphql mutations, can someone please help me, here's the issue https://www.reddit.com/r/graphql/comments/15i8dkp/having_issues_with_mutations/...

Take over login flow from Clerk?

Is there a way to take over login flow? I'm using webhook and problem is Clerk login users before they can be created in database through webhooks. I need a way to take over login flow, await for user to be created in the database, then redirect to main page.

shadcn/ui missing colors

Just installed shadcn/ui (T3 project), and I can't see any colors anywhere except the dark shadows. I removed all my other Tailwind/CSS custom settings to make sure it's not a conflict issue. Also copied a new theme from their website with custom colors, and none of them appeared....

Not get duplicates

Is there any way I can use db.createMany but let's say the prisma is like this
name: name1
subname: name2
name: name1
subname: name2
...

Subdomain themes

Hey everyone, I'm trying to find the best solution for this use-case, basically I need multiple versions of my app, lets say 4, where each one of them are exactly the same with different theme/styles based on the subdomain Lets assume I need mars.whatever.com, saturn.whatever.com, etc. In order to conditionally style I have a different class on html body (the rest is using css vars and tailwind but its outside of the scope of this question)...

How to deploy a GitBook on Vercel?

Hey everyone, I've created a Gitbook but I am stuck on how to deploy it to Vercel. I use Vercel to deploy Node projects but it is my first time using MDX and Gitbook. I need help....

Debugging the endpoints

Hi, how does one debug the endpoints with breakpoints?

Webstorm & TRPC Errors

Anybody here using webstorm (or other jetbrain based IDE's) and have run into this problem? I have no clue why this is happening, I'm getting a huge ass error on every single TRPC proceudre in my project, while in VSC everything works fine and is typed how it's supposed to.

Product hunt hunters

Im about to release my Saas built with t3stack on product hunt. Do you guys have any advice that I can use? Is it a good idea to launch it on saturday? I want it to be less competetive since I doubt I will break through other products who have better marketing strategies...