rn-fetch-blob
rn-fetch-blob copied to clipboard
Cannot read property 'DocumentDir' of null, js engine: hermes
Requiring module "node_modules/rn-fetch-blob/index.js", which threw an exception: TypeError: Cannot read property 'DocumentDir' of null, js engine: hermes.
- React native: 0.70.6
- React: 18.1.0
- rn-fetch-blob: 0.13.0-beta.2
Rebuild the app
the same issue is getting with a fresh installation: the latest RN and this library version.
I got this issue while using expo prebuild and rebuilding the app fixed it. You can also try manually linking the library.
I downgrade RN to "0.69.5" and issue has resolved
This is an obsolete package. Use this https://github.com/RonRadtke/react-native-blob-util
i m getting same issue for downlond an qrcode
Is there any solution ? I am facing the same issue in Android.
"expo": "~48.0.10", "expo-splash-screen": "~0.18.1", "expo-status-bar": "~1.4.4", "react": "18.2.0", "react-native": "0.71.6", "react-native-audio-recorder-player": "^3.5.3", "react-native-blob-util": "^0.17.3", "rn-fetch-blob": "^0.12.0"``
I resolved it by rebuilding the app, and make sure to add this code to your Podfile if you're using CocoaPods.
pod 'rn-fetch-blob',
:path => '../node_modules/rn-fetch-blob'
thanks bro finally solve issue
rn-fetch-blob: 0.13.0-beta.2 is it install and solve problem
You just need to terminate current process and rebuild your app after installing rn-fetch-blob then this error will be resolved
So, its better to restart vscode or the editor you are using after installing rn-fetch-blob package