-
Notifications
You must be signed in to change notification settings - Fork 344
Critical error when simply importing the library #75
Comments
This library depends on apollo-fetch and apollo-fetch depends on isomorphic-fetch. isomorphic-fetch has issues with React Native... |
Oh hm... Guess I'll just have to wait out a fix then. Thanks for the insight! |
@Nickersoft if you don't feel like waiting, or rolling your own ApolloLink, do this... |
@affablebloke are you suggesting forking isomorphic-fetch? if not, where do you place the following fix? Cheers! |
It depends on your project's setup. I have placed this line at the top of // Fixes isomorphic-fetch
GLOBAL.self = GLOBAL; Doing this before any imports of |
@affablebloke worked perfectly - thanks! |
The |
@jbaxleyiii would be really nice to have batch use the global fetch too! |
is batch-http now using global fetch? still facing this error with batch-http@1.0.0 |
Intended outcome:
I'm just trying to import the following into my React Native app, as seen in the docs:
Actual outcome:
However, upon simply injecting this line, my React Native app immediately errors:
How to reproduce the issue:
All I did was attempt to import the library, so I imagine that's all that is required.
Any insight as to what might be wrong? Some more info:
apollo-link
version: 0.5.4react-apollo
version: 1.4.15react-native
version: 0.48.1react
version: 16.0.0-alpha.12The text was updated successfully, but these errors were encountered: