birdofpreyru / react-native-static-server

Embedded HTTP server for React Native
https://dr.pogodin.studio/docs/react-native-static-server
Other
135 stars 21 forks source link

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

Open Braden1996 opened 11 months ago

Braden1996 commented 11 months ago

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

birdofpreyru commented 11 months ago

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?