Robert
Robert

Reputation: 187

ionic v2 error ionic view

I'm developing an ionic v2 app but even working on ionic lab it gets a complete white screen on the ionic view. If I do the same withe the ionic v1 it works.

ionic start sample --v2
cd sample
ionic lab
ionic upload

It shows white but

ionic start sample
cd sample
ionic lab
ionic upload

It works perfectly. No changes on the code at all Thanks

Upvotes: 5

Views: 986

Answers (9)

R.F.
R.F.

Reputation: 381

please try eionic start sample --type=ionic-angular

Upvotes: 0

Shraddha
Shraddha

Reputation: 31

Remove the platform and then add it again.

Upvotes: 0

Somnath
Somnath

Reputation: 406

Better way to solve the code 1st time by running directly into android devices by

Ionic cordova run android or
Ionic run android

Then connect your device with your system and open chrome and enter chrome://inspect to the url

Now you can console log the the error and can find the way of solutions.

Now try to run by ionic view

Upvotes: 0

Abdullah Ghani
Abdullah Ghani

Reputation: 21

Ionic2 app was initially created with --v2 flag but now they removed it . So nothing happens with --v2

Upvotes: 0

Abhishek Pandya
Abhishek Pandya

Reputation: 129

from ionic 2 Ionic officially stops to use ionic lab. You can run and test your app in browser using command "ionic serve".

Upvotes: 0

Chetann
Chetann

Reputation: 297

ionic 2 needs at least 4.4 android to work,.. for more info debug app in chrome.

Upvotes: 0

Jay Ordway
Jay Ordway

Reputation: 1749

The supported platforms are list here:

http://ionicframework.com/docs/overview/#browser-support

You can go back to 4.1 with crosswalk it states.

Upvotes: 0

Petru
Petru

Reputation: 231

Ionic v2 supports android 4.4 and up. The older browser on pre-4.4 devices do not have the features needed for ionic2 and angular 2 to work. Though this can be fixed with crosswalk.

Upvotes: 3

Robert
Robert

Reputation: 187

ionic 2 needs at least 4.4 android to work, lost a lot of time on this and there is nothing on the ionic website informing about that. Writing down here to help anyone in the future.

Upvotes: 9

Related Questions