react-dropzone-uploader icon indicating copy to clipboard operation
react-dropzone-uploader copied to clipboard

error with typescript

Open ck98-01 opened this issue 5 years ago • 1 comments

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
        |       ^

ck98-01 avatar Aug 27 '20 08:08 ck98-01

can I take this issue?

nileshanand16 avatar Sep 13 '20 20:09 nileshanand16

Yes of course!

shahednasser avatar Sep 13 '20 20:09 shahednasser

}

.button-caption-sub { color: #afafaf; font-family: monospace; cursor: pointer; }

nileshanand16 avatar Sep 15 '20 12:09 nileshanand16

You need to fork the repository, make changes to the code then create a pull request. Read more about it in the contributing guidelines

shahednasser avatar Sep 15 '20 14:09 shahednasser

DONE

nileshanand16 avatar Sep 16 '20 20:09 nileshanand16

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

shahednasser avatar Sep 18 '20 23:09 shahednasser

Can I work this issue ????

HADES-01 avatar Sep 25 '20 18:09 HADES-01

Yes @HADES-01 go ahead!

shahednasser avatar Sep 25 '20 18:09 shahednasser