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

Should I start my own blog, or use an existing platform?

So I already have a few articles out on dev.to ( https://dev.to/noblica ) , and a few older ones on Medium. I like writing, and other than scratching that itch, I also wanna use it as a tool to showcase my skills. However, I am a bit torn on if I should continue writing on dev.to, or start my own blog on my own website? I think it could be a good idea, since people that are potentially interested in working with me, can just get all the info they need about me in one place. However, these blogging platforms are already there, and already have an established user base that I'm reaching with the articles I'm currently writing. So I'm not sure what the right move is? What do you guys think?...

Hi guys, I'm peter. I'm starting a new project with all the t3 start recommend

Everything ok, I'm the creation process, I'm using supabase as a db provider, but OKTA as a AUTH provider. and others things. At this moment i have this message: prisma:error Invalid prisma.account.findUnique() invocation: [next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR] https://next-auth.js.org/errors#oauth_callback_handler_error ...

UTApi deleteFiles

Hi, I'm creating an e-commerce admin panel and I have made a function to delete the images you've uploaded for a product and it was working but not anymore, nothing was changed.

RSA_PKCS1_PADDING is no longer supported for private decryption

Summary I am using the native Node crypto module to decrypt data using the pkcs1 padding scheme in a next.js serverless function. I am getting this error on production deployments. (It is working on local dev environment) The error message says this can be "reverted" but where do i actually pass that argument in a production deployment? ```bash...
Solution:
UPDATE: Found a workaround by using NodeRSA and setting the environment to browser (It will use the node crypto library with the CVE by default) ```typescript import NodeRSA from "node-rsa"; ...

Tutotial - What settings to choose

Does anyone know what database he is using in this video? Because I want to do it step by step perfectly, but I still have some errors that are not in the guide. Especially since I have to use cockroachdb because planetscale is paid
No description

Best resources / learning material?

Hi all, I have been developing in HTML and CSS for some time, but looking to move more into JavaScript which I have used quite a bit on my pages that I build, however I want to get more into app development. Specifically using React.js/Native and starting to use Tailwind for CSS as it looks like it could save me a lot of time. I figure whilst I am at it I should probably pick a stack and go with it for leaning purposes and for building my own project to get "on the job" experience so to speak, so it only seems fitting to roll with T3 Stack. ...

HELP ME w/ SIMPLE CSS/FLEXBOX

(please ty, istg im losing my mind over something so simple) GOAL: I want to apply flex-grow to the red ScrollArea to fill the remaining space of <section> in the first <ResizablePanel>. CODE: ResizablePanelGroup > ResizablePanel > Section > Div & ScrollArea is the component tree....
No description

Should I switch jobs?

I’ve been a software engineer at a large automotive company for 5 years and my base salary is about $110k. I work remotely in California. I’m considering applying to some tech companies that I can get referrals from senior engineers/researchers who I met in college and at conferences. Do you think I should switch jobs?

Advanced Typescript Resources

Does anyone have good resources for learning more complex typescript types. Looking for stuff mainly for generics and complex derived types from generics. Would appreciate, good articles, youtube videos, and codebases....

Uploadthing Image not showing up

I feel like I'm making some dumb mistake but hoping someone else will see the error in my ways 😅. I'm implementing uploadthing and have the upload portion of it working. After the upload I'm pushing the response into an array of images and mapping over them, with an <img> for each of them. For some reason the image is erroring out and not displaying. I have added utfs.io to the remotePatterns in my next.config, so not sure what else could be causing this since when I click on the URL that's assigned to the <img> in the DOM, it does take me the uploaded image....
Solution:
Ah ok, I had skipPolling={true} for my UploadDropzone, I didn't fundamentally understand what that was doing (I just thought, "oooh, this make app go brrrr"), once it was set to false everything is working as intended
No description

Large number of Vercel Edge Middleware Invocations coming from next-auth's `/api/auth/session`

I am using the create-t3-app with NextAuth for auth. Also using the pages router for this project. I had about about 3k page views yesterday when I noticed that my Edge Middleware Invocations went up by 4% in one day, with /api/auth/session out in the lead with over a 1/4 of all invocations. I am using the database strategy with NextAuth...
No description

Shadcn - Drawer - Vaul - flashing after closing Drawer

Hello, I'm currently working on a project where I use shadcn-ui and I am trying to integrate a drawer (referred to as "vaul") with a carousel component ("embla-carousel"). I'm encountering an issue where parts of the content briefly flash when I close the drawer. This seems to happen primarily on iPhones. The drawer is built on top of a radix-ui dialog, but I'm uncertain what causes the flashing. It might be related to a CSS variable affecting the content in some way, though I'm not sure. Interestingly, I observe the same issue even in the documentation. (https://ui.shadcn.com/docs/components/drawer)...

Am I being lowballed?

I had a friend of a family friend reach out say they need a website with the below requirements built by Friday for 250$. I've never really done a gig for someone but my feeling in they are lowballing me. ChatGPT says I should be charge multiple times that amount. I rejected their offer- justified or not?
No description

NextJS detect if page is fetching new data, if so, display loading

So suppose I have this page.tsx ```tsx interface DataPropsExampleTypeForReference { category: string;...

error: column "trailer_id" cannot be cast automatically to type integer

Hey guys, I'm new with drizzle and I can't figure out what I what I'm doing wrong here is the schema ```ts...

next MongoDB api route returns []

Does anyone know why im not geting my data to show up I've checked everything like 3 times and can't understand why im geting an empty array even when i change it to.find({}) get same result...
No description

filtering, sorting and grouping + pagination

I want to be able to filter, group and sort tasks. Given tasks are ever expanding, there is also a need for pagination. Are there any production examples of filtering, grouping and sorting + pagination? I am struggling to understand what shape the initial response should look like, how the cache should be constructed for each group, and how to refetch or load more just for a specific group. I haven't even gotten to optimistic updates as yet.....

Scehma Versioning of Event driven architecture

What are some ways schema versioning is done. Currently at work our system has no schema versioning, so I have been working on a middle man module that will be the start of versioning everything at least externally. With that comes schema versioning and a rest api that functions over an event based backend. The most obvious first step is adding a schema version, our api will be v1/<resource>. However, there can be minor schema changes and additions, and I am not sure on how to best go about handling this....

Any good library/service for managing background jobs?

I have a long server process in my nextjs app and I found out that the way to go is through background jobs, saw Qstash but not sure if its porduction ready. NOTE: My app uses a python service so it would be great if the lib/service in question have a python SDK...

module not found build fail

So my init build is not working when deployed to vercel. The path to global.css is not being compiled by the tsconf from ~/... I have tryied changing this manualy to ../ and ./src etc etc but to not joy can andone help....