环境
react-native -v: 0.47.0
npm ls rnpm-plugin-windows: 0.47.0-RC5
npm ls react-native-windows: yes
node -v:8.2.1
npm -v:5.3.0
yarn --version:n/a然后,指定::
Target Platform: UWP (developer mode enabled)
Target Platform Version(s):
10.0.10586
.NET 4.6.1, .NET 4.5
Target Device(s):
Mobile ARM
Development Operating System:
Windows 10 Desktop
Visual Studio Version:
Visual Studio 2015
Visual Studio 2017复制的步骤
期望行为
应用程序应该在屏幕上加载,显示index.windows.js页面的内容
实际行为
声明无法下载JS Bundle的错误消息。

可重复性演示
(粘贴到示例项目的链接和准确的说明来重现问题。) https://github.com/ballySingh/repo2.git。
下载zip并运行npm安装。请按照以上复制部分的第4步操作。
发布于 2018-03-22 09:40:53
尝试将本地主机字符串更改为真正的IP。
私有const = "localhost:8081“<--写入您的IP
文件中
C:\git\plex\plant-floor-app\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\DevSupport\DevServerHelper.cs
发布于 2021-07-21 01:25:06
当我运行react本机包时,我遇到了这个问题,当我连接到我的工作 VPN 时,一旦我断开了工作VPN连接,packager就能够为我的应用程序获取正确的IP接口。如果您已连接到VPN,请断开连接并再次运行您的打包器。
https://stackoverflow.com/questions/45738649
复制相似问题