-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support React Native's node environment: Module 'stream' does not exist in the Haste module map #327
Comments
Could this be related to this issue? If no, could you please share repro project? |
Thanks. It doesn't look related. An example repro project: https://github.com/bearer-syntaxerror/RNAutoRestExample The Dist/AdventuresApi/lib/ contains the autorest generated
There's a library that'll mock the standard node server libraries in react native, but it's only possible to use this library to mock node server libs within your own app and not within its dependencies like Thanks for looking |
Thank you for the repro project! I'll take a look as soon as possible. Quick question before I dive into debugging. Would browser (msRest.browser.js) bundle work for React native? It does not include any of Node.js dependencies that are missing in the browser which include stream, os, xml2js etc. |
I gave this a try by replacing It appears that the browser version relies on at least |
Ok, thanks! I'll investigate this regression. |
What are the steps to reproduce it in the sample repository? |
Sure. Follow the React Native Getting Started steps I haven't tested this sample repo on Windows but if you're on windows, follow the same steps, open an Android device emulator via AVD Manager or your emulator of choice, and run: |
This seems abandoned... any solution/alternative for using with RN? @kpajdzik |
Just an update: we are continuing our investigation in supporting React Native at Azure/azure-sdk-for-js#5771. |
Is your feature request related to a problem? Please describe.
My React Native app successfully leveraged
ms-rest-js version 0.2.4
. A recent upgrade to@azure/ms-rest-js version 1.5.3
now yieldsDescribe the solution you'd like
ms-rest-js works in React Native's node environment.
Describe alternatives you've considered
none
Additional context
The text was updated successfully, but these errors were encountered: