-
-
Notifications
You must be signed in to change notification settings - Fork 67
Issue persist when trying to run with react native #146
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
Hi @FranDepascuali, you’ll still need to add the required polyfills in your build config. Take a look at the README for examples: https://github.com/anttiviljami/openapi-client-axios#browser-usage |
It's really difficult to add a polyfill in react-native like that as it doesn't use a webpack setup. Been reading into https://github.com/philikon/ReactNativify and https://github.com/tradle/rn-nodeify I will tell you if I had any luck. Thanks! |
This seems like a straightforward solution for rn. https://stackoverflow.com/a/41511414 There might be other polyfills you need too like |
Update: I tried every possible way I could, using different polyfill implementation. I couldn't make it work, there's always strange runtime errors when polyfilling. I tried other alternatives to generate a typescript axios client (gonna list them later).
This lib seems awesome. I'll try other versions in the future to see if the errors change or it's available for us with react native. Thanks you very much @anttiviljami !! Depa |
Hi @FranDepascuali. The issues come from the Unfortunately this lib is no longer really maintained and causes multiple issues for us, including a bloated bundle size and difficulty in non Node.js environments. I’ve asked my team at @epilot-dev to take a look at replacing with a simpler, more compatible implementation. A lot of the features from |
Uh oh!
There was an error while loading. Please reload this page.
Thank you @anttiviljami for fixing the previous issue #140 I reported!
When I try, I still have errors regarding dependencies not supported in our node.js runtime due to
json-schema-ref-parser
.Thank you!
Depa
The text was updated successfully, but these errors were encountered: