Open ericehamlin opened 3 years ago
see #108 (comment)
I look into the code deeply. I have a "soft ts-compiler" (strict false, null and no strict on null/undefined) and raise big error when delete it.
all "@ts-ignore " is an issue itself because javascript code can works with typescript like this.
im working to make modern dropzone with functions only (working with react v18.2, and will have less feature, I trying to compact the code also) ... so i'll post my code as alternative ...
I thinking this issue pointing the root of all evil....
PS: maybe at all, i will make real basic dopzone with W3C and MDN content lol : /
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-dropzone-uploader@2.11.0
for the project I'm working on.When using this library with typescript, there were a couple of errors during compilation resulting from assigning potentially undefined values to typed values.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.