The DevSupportManager debug options menu should have a sub-menu that allows, e.g., updating the debug server endpoint.
This requires a bit more work to support XAML navigation, native back button handling, and a bug when XAML is not initialized properly for UWP libraries. Going to see if the bug is fixed in the latest Universal Windows SDK.
Some progress has been made in http://github.com/rozele/react-native-windows/tree/issue358
Can someone explain to me how this is a 2 year old issue, and incredibly debilitating and yet still not resolved?
I have tracked down how to resolve the issue for normal operation, but utilizing remote js debugging is still inoperable. Line 63 of DevServerHelper.cs
allows a reference to a setting for DebugServerHost
, but not on line 104 of the same file for JavaScriptProxyHost
. Modifying this in the core code resolves my issue locally but will not scale. So PLEASE resolve this at least to the level of being able to change a setting through application code.
@rozele Is there a workaround for this with the current codebase? I'm trying to run my app on my Xbox and getting the same red box error that others have reported. But the recommended solution is to change the IP address in DevServerHelper.cs, and that file no longer exists. Is there something else I could do instead?
Sorry, I didn't dig around enough for the new file location. It was listed in the documentation here.
For anyone else looking, you can change the server endpoint here: https://github.com/Microsoft/react-native-windows/blob/master/ReactWindows/ReactNative.Shared/DevSupport/DevServerHelper.cs
For anyone else having the same issue where your Xbox couldn't find the JS bundle server, I wanted to share my solution. I used the "Using Offline Bundle" section here.
One note - in that command, I had to change index.windows.js
to index.js
, and then when you run it from Visual Studio, select the DebugBundle instead of Debug when you want to run it on your Xbox.
So now I'm using react-native start
and the Debug option to run it on my local machine, and when I want to test it on the Xbox, I build the bundle and use the DebugBundle option. It's working great for me so far.
I used the "Using Offline Bundle" section here.
Seems to be moved to: https://github.com/microsoft/react-native-windows/blob/master/current/docs/RunningOnDeviceWindows.md#using-offline-bundle
We are not investing in new features or lower priority bug fixes on the C# implementation of React Native for Windows (previously known as "vCurrent"). All investment moving forward is in the C++ infrastructure (previously known as "vNext") and that is the only option as of 0.61 (and was the default as of 0.60). If this issue is still relevant on the modern implementation please open a new issue. If this issue is of significant severity for a vCurrent app and vNext is not an option, re-open with justification.
Most helpful comment
Can someone explain to me how this is a 2 year old issue, and incredibly debilitating and yet still not resolved?
I have tracked down how to resolve the issue for normal operation, but utilizing remote js debugging is still inoperable. Line 63 of
DevServerHelper.cs
allows a reference to a setting forDebugServerHost
, but not on line 104 of the same file forJavaScriptProxyHost
. Modifying this in the core code resolves my issue locally but will not scale. So PLEASE resolve this at least to the level of being able to change a setting through application code.