Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova emulate [platform] fails to runs properly #10

Open
chiemekailo opened this issue Oct 31, 2017 · 4 comments
Open

cordova emulate [platform] fails to runs properly #10

chiemekailo opened this issue Oct 31, 2017 · 4 comments

Comments

@chiemekailo
Copy link

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

@loicndjoyi
Copy link

Same problem for me. Any idea?

@AmitM30
Copy link

AmitM30 commented Jan 13, 2018

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
Copy link

AmitM30 commented Jan 14, 2018

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
Copy link

AmitM30 commented Jan 14, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants