React-native-fetch-blob: undefined is not an object (evaluating 'RNFetchBlob.DocumentDir')

Created on 5 Jun 2017  路  19Comments  路  Source: wkh237/react-native-fetch-blob

Possible duplicate issue with https://github.com/wkh237/react-native-fetch-blob/issues/371

although mine appear on IOS simulator (iphone 6 iOS 10.2),

here my dependencies :
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-fetch-blob": "0.10.5"

If anyone as any fix, solution it will be awesome

thanks

screen shot 2017-06-05 at 14 30 03

Most helpful comment

I found a fix. In my case deleting 'build' folder in 'ios' folder fixed the issue. Before that I did cache cleaning, reinstall, relink - nothing fixed. I don't know if just deleting 'build' alone would fix the problem or all those previous steps I've done also helped.

All 19 comments

Solved by re-install react-native-fetch-blob

This is still an issue and re-install didn't work

update: On version 0.10.6

i have the same error

@zengyimou react-native link

@justinmakaila it didn't work at all

Adamnator92, did you find a fix? I have the same issue, nothing helps.

@justinmakaila didnt, i try a lot of solution none of them work

I found a fix. In my case deleting 'build' folder in 'ios' folder fixed the issue. Before that I did cache cleaning, reinstall, relink - nothing fixed. I don't know if just deleting 'build' alone would fix the problem or all those previous steps I've done also helped.

i also have the error in ios.I tried a lot of solutions,but not work.

I had this issue and it was installation problem. For some reason link did not work (output said link was successful, but changes were not made to android / ios config files), had to do the steps manually.

@latusaki use manually to add it, your project can run? I tried it, but has another problem...

+1 same error

That's because of Expo.
If i use "react-native run-ios" or "react-native run-android", it's be fine..
But if i open project by Expo, it's the propblem!

@IrinaDorofeeva +1

I have the same problem with iOS.

On Android run fine, cause I installed manually react-native-fetch-blob (MainApplication, settings.gradle, build.gradle, ... ).

How can solve this issue on iOS?

Ok, I installed rnpm, I did rnpm link and ready!

@ghost +!

+1 same error

+1 Same issue running in ios, referenced in libraries, linked, uninstalled and installed. Nothing.

Was this page helpful?
0 / 5 - 0 ratings