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:
Solution:Jump to 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
2 Replies