fortana-co / react-dropzone-uploader

React file dropzone and uploader
https://react-dropzone-uploader.js.org/
MIT License
447 stars 183 forks source link

error TS18046: 'e' is of type 'unknown'. #208

Open adrian-kawanshi opened 1 year ago

adrian-kawanshi commented 1 year ago

error missing type in this line:

https://github.com/fortana-co/react-dropzone-uploader/blob/89aa88acf753962398fee967d0e4b5ac5d53065a/src/Dropzone.tsx#L503

SemchSemch commented 1 year ago

i have the same problem

ehsandevs commented 1 year ago

same

DnlVldz-git commented 1 year ago

Same

meoyawn commented 1 year ago

solved with https://github.com/ds300/patch-package

prmichaelsen commented 1 year ago

Would love to see this fixed in the lib itself

For now I just updated my tsconfig:

{
  "compilerOptions": {
    // ...
    // added this line
    "useUnknownInCatchVariables": false,
  },
  // ...
}