rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

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

Open EnettyTech opened this issue 2 years ago • 11 comments

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

EnettyTech avatar Dec 14 '22 03:12 EnettyTech

Rebuild the app

N0-0NE-Dev avatar Dec 17 '22 10:12 N0-0NE-Dev

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

russelRajitha avatar Dec 19 '22 10:12 russelRajitha

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

N0-0NE-Dev avatar Dec 19 '22 10:12 N0-0NE-Dev

I downgrade RN to "0.69.5" and issue has resolved

EnettyTech avatar Dec 19 '22 10:12 EnettyTech

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

meetajhu avatar Jan 07 '23 13:01 meetajhu

i m getting same issue for downlond an qrcode

chandan-mishra-iphtech avatar Mar 03 '23 05:03 chandan-mishra-iphtech

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

Umar24 avatar Apr 07 '23 16:04 Umar24

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'

AchrafBn avatar Apr 07 '23 16:04 AchrafBn

thanks bro finally solve issue

ghost avatar Sep 07 '23 12:09 ghost

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

ghost avatar Sep 07 '23 12:09 ghost

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

KaziMahbuburRahman avatar Mar 17 '24 11:03 KaziMahbuburRahman