Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EnettyTech opened this issue Dec 14, 2022 · 11 comments
Open

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

EnettyTech opened this issue Dec 14, 2022 · 11 comments

Comments

@EnettyTech
Copy link

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
@N0-0NE-Dev
Copy link

Rebuild the app

@russelRajitha
Copy link

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

@N0-0NE-Dev
Copy link

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

@EnettyTech
Copy link
Author

I downgrade RN to "0.69.5" and issue has resolved

@meetajhu
Copy link

meetajhu commented Jan 7, 2023

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

@chandan-mishra-iphtech
Copy link

i m getting same issue for downlond an qrcode

@Umar24
Copy link

Umar24 commented Apr 7, 2023

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
Copy link

AchrafBn commented Apr 7, 2023

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
Copy link

ghost commented Sep 7, 2023

thanks bro finally solve issue

@ghost
Copy link

ghost commented Sep 7, 2023

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

@NoobMahbub
Copy link

NoobMahbub commented Mar 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants