joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.8k stars 767 forks source link

Cannot read property 'DocumentDir' of null, js engine: hermes #832

Open EnettyTech opened 1 year ago

EnettyTech commented 1 year ago

Requiring module "node_modules/rn-fetch-blob/index.js", which threw an exception: TypeError: Cannot read property 'DocumentDir' of null, js engine: hermes.

N0-0NE-Dev commented 1 year ago

Rebuild the app

russelRajitha commented 1 year ago

the same issue is getting with a fresh installation: the latest RN and this library version.

N0-0NE-Dev commented 1 year ago

I got this issue while using expo prebuild and rebuilding the app fixed it. You can also try manually linking the library.

EnettyTech commented 1 year ago

I downgrade RN to "0.69.5" and issue has resolved

meetajhu commented 1 year ago

This is an obsolete package. Use this https://github.com/RonRadtke/react-native-blob-util

chandan-mishra-iphtech commented 1 year ago

i m getting same issue for downlond an qrcode

Umar24 commented 1 year ago

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"``

AchrafBn commented 1 year ago

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'
ghost commented 8 months ago

thanks bro finally solve issue

ghost commented 8 months ago

rn-fetch-blob: 0.13.0-beta.2 is it install and solve problem

NoobMahbub commented 2 months ago

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