persianninja
TTCTheo's Typesafe Cult
•Created by persianninja on 3/3/2025 in #questions
uploadthing instructions regarding "re-exporting with the types assigned"
Regarding the 2nd question about the semver error ... think i figured it out. this tutorial (https://www.youtube.com/watch?v=d5x0JCZbAJs) does not explicitly show that UploadButton has to be in a client component (around 1h:00m:24s), but the uploadthing official docs do. I just added "use client" to TopNav and it then worked. I wonder if the uploadthing library should specify that in their own code/library so you don't need to add to TopNav or so u don't need to create a UploadButtonWrapper component to just say "use client;" in NextJS's App Router.
The error went away and i see the UploadButton now. I am still curious about what "re-exporting" means, what those steps are, and why you'd do that.
3 replies