au7 icon indicating copy to clipboard operation
au7 copied to clipboard

cordova emulate [platform] fails to runs properly

Open chiemekailo opened this issue 7 years ago • 4 comments

When built with cordova for iOS and Android, the output build only launches showing the "loading..." message from the index.html It never goes away, and the app just hangs there. cordova run browser command works just fine. How can this be remedied? screen shot 2017-10-31 at 23 36 37

chiemekailo avatar Oct 31 '17 22:10 chiemekailo

Same problem for me. Any idea?

loicndjoyi avatar Dec 12 '17 21:12 loicndjoyi

Same problem here. Trying to debug, the application is not able to fetch the bundle js files: image

Looking into how to solve this. If anyone has any idea, please guide.

AmitM30 avatar Jan 13 '18 16:01 AmitM30

ok. changing the following line in webpack.config.js solved this for me: publicPath: '/dist/', -> publicPath: 'dist/',

Issue: 0.bundle.js was being referred to as /dist/0.bundle.js, while the packaging in the bundled *.apk looked like this: image

So, the path is relative to current folder and not to root.

AmitM30 avatar Jan 14 '18 16:01 AmitM30

@alflennik here's the PR in case this is the right way to solve this.

AmitM30 avatar Jan 14 '18 16:01 AmitM30