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

I am getting errors while trying to install create-t3-turbo dependencies, how do i fix them?

This is my error message PS C:\Users\cc09p\OneDrive\Desktop\Programming\my-turborepo> npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! ...

NEXT JS APP Hosting on AWS

This will be basically a stupid question, I guess, but I could not find an answer, so I hope you guys can help me out. I have a nextjs project that is basically a gallery portfolio page, and I am using the nextjs server components as well as the client ones. Is my application still a static website if I am using server components? The reason I ask this is because I would like to host the site in a S3 bucket, but as far as I know, this is only for static websites. My server components are actually the whole gallery....

svgs?

How to fix this error? it works fine but i have this "any" type error
No description

create t3 stack init error

since some time I get this error if I try to init a new t3 app, anyone know how to fix it? ```bash Adding boilerplate... ✔ Successfully setup boilerplate for nextAuth ✔ Successfully setup boilerplate for prisma...
No description

Looking for an up-to-date RN CLI tutorial

I know that Expo is the preffered way and easier to setup and update your app on app stores when already published, but I would like to also like to learn the React Native CLI way of doing things without Expo. Do you know about any good tutorial that is up-to-day (will work on macOS M1) with some hello world or to-do app?

responsiveness with object using tailwind

hello guys i am trying to achieve responsiveness in tailwind with the help of js object example:- ```js const className={ sm:"bg-blue-300",...

console.log calls not showing up in Vercel runtime logs, when streaming edge function runs longer

To allow an next.js edge function run for longer than 30 seconds, we stream its output. There is a weird issue where console.log calls don't show up in the Vercel runtime log dashboard, if the edge functions runs for more than ~17 seconds. I've tested it with a new next.js app, using the latest next.js version and this route handler: https://gist.github.com/csshsh/f2d35919b533fb2a9e64865a662dd914 Any idea what might be causing this and how to resolve it? Vercel support unfortunately has been non-existant...

T3 Env - Remix

https://env.t3.gg/docs/core
The core package can be used in any framework of your choice.
Would it work no problem in remix app ??...

Any known projects or websites using T3 stack?

I remembered Theo mentioned about the cost of lambda can skyrocket so i'm just wondering whether is it still a good idea to do a full stack with T3 or just Next.js + custom backend I'm worried about the cost only for the time being, any opinions are welcome. Thanks!...

Just a question about the current state of Next's app router

Almost every new video on YT rn uses the app router instead of pages. I was initially hesitant to switch to app because of some caching issues, but a lot of libraries rn (like clerk and supabase) have been favoring app over pages. I'm just wondering, have the caching issues been fixed? It's the only thing holding me back anyway....

Uploadthing with Remix.run

has anyone gotten uploadthing with remix 2.0 working?

Question about useQuery

I have a query set up like follows ```ts const findMembershipQuery = api.manageMembership.searchMembership.useQuery( { accesses: accesses.join(","),...

Theo T3 Stack Tutorial - withClerkMiddleware soon deprecated

Hi, The tutorial uses withClerkMiddleware for the middleware.ts The old one had public routes unless specified => ```ts export default withClerkMiddleware((req: NextRequest) => {...
No description

I get a redirect loop after switching to Cloudflare with Vercel

i keep getting ERR_TOO_MANY_REDIRECTS when i try to go to my website after changing from namecheap to Cloudflare, i followed the "Using Cloudflare as Your DNS Provider" instructions at https://vercel.com/docs/integrations/cloudflare but it's still not working
No description

TRPC & Optimistic Update

I'm trying to implement optimistic updates with TRPC using the simplest of examples from the docs and haven't had any luck: From https://create.t3.gg/en/usage/trpc, I'm doing a parallel example where I have 'upvotes' instead of 'posts'. I've attached the schema that works and the router that also works. The only part that isn't operational is the optimistic update (Error messsage attached, Symbol.iterator) Any help would be greatly appreciated. Optimistic update is obviously a nicer UI to have...
No description

HttpOnly Cookie

Does httpOnly cookie work if my FE and BE are on the same domain? Because I tried hosting my BE in example.com and FE in abc.com, In this case it doesn't work But it happens to work if my FE: example.com BE: example.com/api || api.example.com...

anyone else think app directory is not worth?

Seems like app just breaks a lot of things in the t3 stack. Seems little community support. Just doesn't seem worth the time to try and debug and rewrite a ton of code for the same results.
Are most of yall still using the pages directory?...

T3 Stack Theo Tutorial - Next Auth

Hey, I'm about to start the tutorial and just noticed Theo didnt used Next Auth, Isn't it recommended? Next auth doesnt makes auth easier to handle? Not sure if follow the tutorial because I also wanted to learn how to use it...

nextjs 13.4 app, converting _app and _document to layout.

How would I go about changing my _app to work with the root layout in my app directory? _app.tsx ```import "~/styles/globals.css"; ...

Implementing an anonymous "like"-function for my webpage

I'd like for my users to be able to "like" my blog posts as an extra point of feedback for me to consider while writing. This should be done without creating an account as I'd expect no one to invest that much effort into my website. For now I've settled on using some hardware + software characteristics to create an anonymous fingerprint of a users browser in order to make a small attempt at weeding out duplicate likes. Is there any obvious negatives to storing these fingerprints as plain text in my DB? They're not specific enough to identify a user (nowhere near) and I can't store them hashed since I have no username or the likes to search the tables with. This approach eliminates the need for cookies (which I would like to stay away from if possible) and would give me "good enough" protection against refreshing and liking again....