Closed mskarimi closed 1 year ago
Hi Please added @types/invariant to package.json I got error when run tsc --pretty --noEmit
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';
npm i --save-dev @types/invariant
declare module 'invariant';
2 import invariant from 'invariant'
Found 1 error in node_modules/react-native-document-picker/src/index.tsx:2
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 🙂
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 containingdeclare module 'invariant';
2 import invariant from 'invariant'