Zveratko
Zveratko

Reputation: 2811

OnsenUi with Cordova load error

I just created template for OnsenUI with vue and cordova and executed couple of command thah should run it as android app, but I'm getting this error

enter image description here

Note I'm behind proxy.

vue init OnsenUI/vue-cordova-webpack hello-world
npm install 
cordova platform add android
cordova emulate android

I found something about LoadUrlTimeoutValue in some config.xml, but not really sure where to place it.

Upvotes: 0

Views: 127

Answers (2)

Sourav Mukhopadhyay
Sourav Mukhopadhyay

Reputation: 3

It is a bit late to answer, still, I think it may help someone who is facing this same issue.

According to @Zveratko the steps followed was

  • vue init OnsenUI/vue-cordova-webpack hello-world
  • npm install
  • cordova platform add android
  • cordova emulate android

Some steps are missing in the process and that is the cause of the error. As this project is built with webpack, so it needs to be compiled before running it to android emulator.

Steps should be

  • vue init OnsenUI/vue-cordova-webpack hello-world
  • npm install
  • npm run build
  • cordova platform add android
  • cordova emulate android

Upvotes: 0

bbsimonbb
bbsimonbb

Reputation: 29002

Looks like a filesystem URL has been used somewhere where a HTTP URL is expected. What happens if you search your code for "file:///"?

Upvotes: 0

Related Questions