uploadstuff lib not exporting react components
trying to use the upload stuff library as recommended in the documentation but the react components are not properly exported. it looks like @Michal Srb made this library?

10 Replies
also typescript is unhappy haha

Hmm weird, can you share your tsconfig, next or vite config and how you’re specifying the dependency in package.json?
i forked your template so it's the same as yours @Michal Srb haha
tsconfig.json
package.json
Thoughts @Michal Srb ?
Hey @IronManiac , this is an issue with the template. In your tsconfig.json change
moduleResolution
to:
then it should all workOk thanks @Michal Srb, I'll give that a try.

The dropzone uses different fileTypes than the button:
An object of with a common MIME type as keys and an array of file extensions as values (similar to https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker 's types accept option).
MDN Web Docs
Common MIME types - HTTP | MDN
This topic lists the most common MIME types with corresponding document types, ordered by their common extensions.
MDN Web Docs
Window: showOpenFilePicker() method - Web APIs | MDN
The showOpenFilePicker() method of the
Window interface shows a file picker that allows a user to select a file
or multiple files and returns a handle for the file(s).
i copied directly from your docs
https://uploadstuff.dev/api-reference/UploadDropzone
UploadDropzone – Nextra
Nextra: the next docs builder
That's a bug in the docs 😦
It should be:
I'll fix the docs in a sec
fileTypes is also optional so i just removed it and it worked.
but that works also. thanks.