-
Notifications
You must be signed in to change notification settings - Fork 761
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
Fix compatibility with React Native #1047
Comments
So the issue was I think its because we're missing the regenerator runtime... all apps up to date have included @jpoutrin a possible workaround is to just include babel-polyfill But we'd need to find a fuller solution to swagger-js, as we shouldn't be mutating globals in a lib. Its just bad :) |
@ponelat it might be one of the issue indeed. but didn't make it work at the end. I moved back to v2 and also discover that the http connector had to be re-implemented as the XMLHttpRequest seem to behave in a different way. see the gist |
I just hit this issue trying to upgrade a react-native module to v3, manifesting as a "self is not defined" error which seems to come from the |
Any update on this? What's the current solution, or what we should be doing? |
I haven't used the library yet, but was heavily interested on. I was just asking to know if it would work or should I use fetch instead. |
Currently faced the same trouble. After debugging this error was found (in isomorphic-fetch lib): So now I am stuck at this point. I use So, I now don't know what to do. Using fetch with swagger server interface doesn't look so sweet :'( P.S. I am wondered but I cannot find any information about using RN and Swagger client. So, either everything works great everywhere, either no one use it. No glue. UPD.
So thank you, @adamski!Anyway, it doesn't work with 3.x :( |
Thanks for the insights, everyone. It looks like this is a known issue with
Unfortunately, it appears that the library is no longer maintained, so this is unlikely to change from their end. In the second issue I linked, I noticed someone pointing to the |
We've just switched from |
Fix released in Closing! Thanks everyone. |
I have version 3.3.4 and facing this.
Am I missing something? |
@jtn-d, that's an odd error. Is it still a problem? Can you give some more context? |
The library does not work with react native for some reason.
when I disable swagger-js or move back to version 2 my app works again...
The text was updated successfully, but these errors were encountered: