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

How to send metadata from client to server via useUploadThing (Nuxt3)

I've been using uploadthing in nuxt3 for a week. Most things work, but I can't pass metadata from client-to-server via useUploadThing. What I'm trying to do: create a customId on the client, pass it to my server, and use it to form the presigned URL. Starting on the client with: const {startUpload} = useUploadThing("images");...

onUploadComplete callback fails

Hey All, Setting up uploadthing in a fresh next app router app. Running next dev server using bun run dev....

Is t3dotgg/yerba the best way to use electron in a monorepo?

Hello, I have came across a lot of templates that implement an electron app in a turborepo, and t3dotgg/yerba was one them. What I noticed is the lack of issues and maintenance on the templates so I thought I should ask if it's still good to use it or are there any better ways to have an electron app in a turborepo/monorepo project....

How does bun install work ?

When I install this package using bun add, I noticed that bun also installed hono and other pacakges (devdeps) but ig it shouldnt have done that ?

How do you promote your apps :)

I don't believe in "good product speaks for yourself", just curios what is the way yall do it.

How can i make my Prettier printWidth work with classnames as well?

English is not my first language and tried to google this the best i could, i use tailwind so i get some huge classnames, like this for example: (this is just one line)...

"Your file was uploaded, but the callback request to failed. Reason: Fetch Failed."

Hi All, I am following the youtube video tutorial: https://youtu.be/d5x0JCZbAJs?t=3713 I have been banging my head against this issue all afternoon and I don't quite know where I am going wrong. I have tried multiple different things and still can't seem to get the .onUploadComplete chain to fire. ...

React 19 React Hook Form Issues

hey i've tried implementing React Hook Form following shadcn documentation and components. I continue to get this error and couldn't think about a workaround ```...

need help deciding mobile stack

hey, web dev here, hoping someone has mobile knowledge, I want to make something similar to a plane in-flight entertainment as an app(display maps, have some built-in games, play movies etc) while also having shared(or similar) codebase between android/iOS what would be the best option for tech stack? I'm also considering lightweight game engines...

Auth System - Cookie problem

Hey, I have another question. I'm currently trying to convert my AuthSystem from Next 14 to Next15. the cookie set works ``` (await cookies()).set('viewToken', data, {...

Exclude field depends on another field

i have schema model like this ```js model Question { id String @id @default(cuid())...

breaking the Rules of Hooks?

okay, I don't understand react hooks well enough. i'm writing my component this way: ``` function TableRowFromJob (job: JobType) { ...

UploadThing: Image upload successful, but reaching neither onUploadError nor onUploadSuccess

This used to work for some time, but today it stopped working ``` UploadThingError: Something went wrong. Please report this to UploadThing. at INTERNAL_DO_NOT_USE__fatalClientError (index.js:494:52)...

t3 stack and nextjs app router, chat app

Has anyone built a chat application using t3 stack with trpc v11 and nextjs app router?

🐌 Extremely Slow Initial Compilation with Next.js 15.1.0 + tRPC

I recently upgraded to Next.js 15.1.0, and I'm experiencing extremely slow initial compilation times (>22 minutes). Here's what I'm seeing: Environment: - Next.js 15.1.0 - Using tRPC with multiple queries...
No description

utfs.io is blocked by malware bytes browser guard

Solution:
Well it is not being flaged ny more
No description

bunx shadcn@latest init

I prompted v0.dev to create a starter template and I copied the command and changed the npx to bunx --bun and ran it only to find this error
error: Cannot find module '@jridgewell/gen-mapping' from '/private/tmp/bunx-501-shadcn@latest/node_modules/@babel/generator/lib/source-map.js'
error: Cannot find module '@jridgewell/gen-mapping' from '/private/tmp/bunx-501-shadcn@latest/node_modules/@babel/generator/lib/source-map.js'
...
Solution:
simply run bun pm cache rm and rerun the code to fix everything

How to upload a PDF file to uploadthing from a route.ts file

```typescript export async function uploadFileToProfile( pdfBuffer: Uint8Array<ArrayBufferLike>, uniqueMetadataId: string, ) {...

Self hosted Postgres on Create t3 Turbo

I am low key struggling to convert create-t3-turbo db package from using Vercel Postgres to Railway postgres connection. This is what I have now in my client.ts ```...