generateUploadButton throws type error
I'm following the 0 - Production Tutorial. I am about an hour in, and adding the upload button for UploadThing.
In the first attachment you can see the code to create a custom export component using the generateUploadButton function. Calling it like this throws the error in attachment 2. If I replace
OurFileRouter
with FileRouter
nothing changes, making me believe that OurFileRouter
is not part of the problem.
When I Import UploadButton
from @uploadthing/react
(with alias) and directly export it. As the commented out line does. The code works.
Can someone give me some pointers where reality diverted from the tutorial and how to start to debug this issue?0 Replies