Reputation: 181
Getting this error
React native unable to download JS bundle
in windows desktop when I uploaded zip file on hockeyapp through visual studio.When I stop react native server still getting same error on same system.
I am not able to run this code on another machine.
Upvotes: 0
Views: 580
Reputation: 181
Previously I was not able to install my Windows application (created in react native) in another Windows system using the hockey app. I created app packages in visual studio 2017 but was getting an error: "unable to download js bundle", because I was not using offline bundle.
So to create debug or release bundle to run on another devices use this command-
**react-native bundle --platform windows --entry-file index.windows.js --bundle-output windows/{your project name}/ReactAssets/index.windows.bundle --assets-dest windows/{your project name}/ReactAssets**
**--dev false** (mandatory if you want to create release bundle else not )
In my case I was using wrong slash in path in the assets path of above command.
After this step create app packages in visual studio. Upload to HockeyApp or somewhere to distribute your app. Now you will not get this error
Upvotes: 1