react-native-static-server icon indicating copy to clipboard operation
react-native-static-server copied to clipboard

TypeScript error: Exporting local "EncodingT", which is not declared

Open Braden1996 opened this issue 2 years ago • 1 comments

Hello!

I'm trying to setup this library on a Expo pre-build project. However, when importing the library I am seeing the following TypeScript error. Not to sure where to even start debugging this? Is there any information I could provide to help?

CleanShot 2023-09-13 at 15 13 34

Braden1996 avatar Sep 13 '23 14:09 Braden1996

Hey @Braden1996 , this complain is about my fork of RNFS library, not sure why it happens though... it could be a mistake there, but checking the latest code in the repo, that type EncondingT export at the line 530 exports the type imported at the line 21. Can you just play with that code in your node_modules version of the package, and thus figure out why it does not work for you, and what should be corrected. Perhaps, it stuck with an older version of RNFS where was some mistake? Or can be something special about your TypeScript configuration?

birdofpreyru avatar Sep 13 '23 14:09 birdofpreyru