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

React Native and StoryBook

have someone used expo with storybook? I am trying to use both of them but keep getting too many errors

question about the "taint" section of the "From 0 to Production" tutorial

Theo described how its important to do your server calls away from components in a file marked with server only. Im following the tutorial but using trpc too, in the setup it seems like the server only functionality is already setup when the cli made the project, because i can see "server-only" imported in the server.ts file and i believe the context is being made here so i shouldnt have to also import it in the file holding my query? But i just wanted to make sure i dont have to also include this in the router file. Relevant code:...

UploadThing Error while following "From 0 to Production" tutorial

While trying to follow Theo's tutorial here: https://www.youtube.com/watch?v=d5x0JCZbAJs Around the 1:00:25 timestamp, while following the UploadThing setup section, I get the error in the image below. I have no idea where it's coming from or how to fix it. I haven't seen any issues brought up about it in the uploadthing Github repo so I'm assuming it's a me issue. I'm not sure what I did wrong, since I've been following the tutorial very closely. ...
Solution:
resolved! The issue was not making the component that used the UploadButton component a client component.
No description

credential login with NextAuth

guys i have been dealing with some errors while adding credential login to my project. I am adding the screenshot . I would appreciate any help.
No description

setState mutating initialized object

Hey all swiss cheese question here. I have two states, a current state, and a revertable state which are both initiated by the same object: ```tsx const mockData = {...

Postgres not available on Vercel

Hi, im following the tutorial on Theo's The Modern React Tutorial However on the setting up database part of the video, i realise that vercel doesnt have postgresql anymore? any help?

postgres node modules not found

I'm running into this error after I added an AuthButton component, i followed this tutorial to create the button https://www.youtube.com/watch?v=z2A9P1Zg1WM&t=485s I'm using create t3 with nextauth and connected to neon postgres db with drizzle AuthButton.server.tsx...
No description

UploadThing invalid secret error, invalid server config

Hi I'm using the UTapi and it stopped working with the new sdk API keys not sure what's going on this project uses Astro any help is appreciated thanks!...

Help me with OAuthAccountNotLinked

i cannot get this error fixed
[auth][error] OAuthAccountNotLinked: Another account already exists with the same e-mail address. Read more at https://errors.authjs.dev#oauthaccountnotlinked
[auth][error] OAuthAccountNotLinked: Another account already exists with the same e-mail address. Read more at https://errors.authjs.dev#oauthaccountnotlinked
https://github.com/Parthvsquare/hsco-t3-turbo...

RSC error

loading a server component gives me this error ```js import { Button } from "@/components/ui/button"; import { getServerAuthSession } from "@/server/auth"; import { Rocket } from "lucide-react";...

Am I missing the point of using `use` for data fetching with server components?

In the react docs, they give the following example for how to use the use function: ```tsx // page.tsx import { fetchMessage } from './lib'; import { Message } from './message';...

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. ...
Next