react-dropzone-uploader
react-dropzone-uploader copied to clipboard
error with typescript
I don't know why it's giving me this error... can someone help?
TypeScript error in C:/Users/User/Desktop/dev/node_modules/react-dropzone-uploader/dist/Dropzone.tsx(635,7): Type 'Element[]' is not assignable to type 'null'. TS2322
633 | let previews = null
634 | if (PreviewComponent !== null) {
> 635 | previews = files.map(f => {
and :
TypeScript error in C:/Users/User/Desktop/dev/zidyia-frontend/node_modules/react-dropzone-uploader/dist/utils.ts(104,7): Type 'FileList' is not assignable to type 'null'. TS2322
102 | // NOTE: Only the 'drop' event has access to DataTransfer.files, otherwise it will always be empty
103 | if ('files' in dt && dt.files.length) {
> 104 | items = dt.files
| ^
can I take this issue?
Yes of course!
}
.button-caption-sub { color: #afafaf; font-family: monospace; cursor: pointer; }
You need to fork the repository, make changes to the code then create a pull request. Read more about it in the contributing guidelines
DONE
Hi @nileshanand16 you have pushed a commit to your repository that you forked from this. You need to create a pull request to merge your code. Please check the contribution guidelines for more details
Can I work this issue ????
Yes @HADES-01 go ahead!