简体   繁体   中英

React native unable to download JS bundle in windows phone

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.Please help

After 2 days surfing, I solved this issue , Now working fine- Previously I was not able to install my windows application (created in react native) in another windows system using hockey app. I created app packages in visual studio 2017 but getting 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM