Mihir
TTCTheo's Typesafe Cult
•Created by TechRo on 1/19/2025 in #questions
generateUploadButton throws type error
Add the
"use client";
directive to the topnav.tsx
file. It is added in the tutorial as well, a few mins later.
However, why it immediately fails for us and does not break for Theo I don't understand.
The uploadthing docs mentions "use client";
directive in a red warning note as well. These posts discuss the same issue and come to the same conclusion -
https://discord.com/channels/966627436387266600/1319489814831304724
https://discord.com/channels/966627436387266600/12948112677138596753 replies