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
Mutation causes :ERROR Error: Network error: global is not defined #220
Comments
this seems like initially angular-cli issue as I had to add line to the polyfills.ts angular/angular-cli#8160 Should it be in there in the REST LINK? |
That's news to me, in React-Native and other environments, |
The thing I did was as suggested on the Angular but they consider this as a heck. this is what I did at the bottom: https://github.com/fkolar/todo-rest/blob/master/src/polyfills.ts |
I agree this is a hack, but only you know if your code is supposed to run in a browser, or on react-native. If you know of/can link to a better way to write Apollo-link-rest, I would support a change! Unfortunately |
I just hit on this issue.. is there a solution already? |
Currently using Angular 7, apollo-rest link 0.7.3
I finally get the mutation working partially and there is a one problem where
global
is not intialized and it causes this error:I initialize client
I have this mutation:
I execute it like this:
The line that causes the error is bellow on the picture
Any idea why this
global.FileList
global object is undefined?The text was updated successfully, but these errors were encountered: