-
Notifications
You must be signed in to change notification settings - Fork 1.5k
undefined is not a function (evaluating 'fetch(~)') #644
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
Comments
@kuhbaar, |
@vladimir-kotikov, thanks for the quick response. I'm using fetch multiple times for some async calls to a REST API:
I'm also importing (but not using yet) 'react-native-fetch-blob'. But i don't think that correlates in anyway. I can see both calls are somewhat similar to the error. Can I use CodePush without overwriting those methods? Thanks for your help! |
@vladimir-kotikov Can you tell me more on how I can check if the global fetch function has been overwritten? Thanks |
I actually was thinking that However if you say that even after removing Another options that I can suggest - you could try to set some breakpoints in |
@vladimir-kotikov But is there any possibility of using both packages? Thanks |
I think yes, because |
@vladimir-kotikov
if the fetch function would have been overwritten, this wouldn't work? |
@vladimir-kotikov in the release.apk the problem persists |
After some restarts it seems to work consistently... Some serious xmas magic happening here. |
Hi, I'm using Initially Any suggestions? |
I get a solution. The problem happens because the function that call So, I just changed my workflow and |
"react-native-code-push": "^1.16.1-beta",
"react-native": "^0.39.2",
Release:
[CodePush] Checking for update.
rendering LoginScene
[CodePush] Reporting binary update (1.0)
[CodePush] Report status failed: {"appVersion":"1.0"}
[CodePush] An unknown error occurred.
[CodePush] undefined is not a function (evaluating 'fetch(n,{method:o(e),headers:a,body:t})')
Debug:
same but:
[CodePush] undefined is not a function (evaluating 'fetch(url,{method:getHttpMethodName(verb), headers:headers,body:requestBody})')
I installed code push using the manual way. I tried upgrading / downgrading react-native with no result.
Somebody knows the issue?
cheers
The text was updated successfully, but these errors were encountered: