react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 441 forks source link

invariant type error #642

Closed mskarimi closed 1 year ago

mskarimi commented 1 year ago

Hi Please added @types/invariant to package.json I got error when run tsc --pretty --noEmit

Try npm i --save-dev @types/invariant if it exists or add a new declaration (.d.ts) file containing declare module 'invariant';

2 import invariant from 'invariant'


Found 1 error in node_modules/react-native-document-picker/src/index.tsx:2
vonovak commented 1 year ago

Hello and thanks for reporting, the dependency is already present: https://github.com/rnmods/react-native-document-picker/blob/301c551970fd053d9f1b99a05e2236210ad9dcf8/package.json#L61

Thank you 🙂