UploadButton "You forgot to pass the generic" type error

Last time I used UploadThing, I create the upload button using the 'generateComponents' function which is now deprecated in favor of genUploadBtn and genDropZone functions. I'm using generateUploadButton, but the button generated doesn't seem to be getting the types from OurFileRouter assigned (same structure as to what docs show). Has anyone had this issue? Am I missing something really obvious? Would appreciate any help! Some SS's below:
No description
No description
No description
Solution:
Seems like auto import was importing the UploadButton and UploadDropZone from @uploadthing/react instead of from my own file were the generic is being assigned. Cheers
Jump to solution
2 Replies
agu
aguOP9mo ago
In addition, if I follow the example this is what I'm seeing:
No description
Solution
agu
agu9mo ago
Seems like auto import was importing the UploadButton and UploadDropZone from @uploadthing/react instead of from my own file were the generic is being assigned. Cheers
Want results from more Discord servers?
Add your server