Ionic showing white screen, no error

Dear comunity,

I just started with Ionic 3. I added some folders and pages to my app and suddenly I got a white screen with no error.

In order to continue my troubleshooting, can someone please tell me if I installed the right versions ?

Global packages:

@ionic/cli-utils : 1.4.0
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts : 1.3.12
Ionic Framework    : ionic-angular 3.5.0

System:

Node       : v6.11.0
OS         : Linux 4.4
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 3.10.10 

Thank you !!

Hello, are you talking about ionic serve or a builded application ?

Ionic serve. I just started coding my app, so I did not start cordova or other useful modules yet. As there are different modules and version (ionic info), I would like to double check whether I installed the right versions or an upgrade is necessary. Thanks.

Your application has already worked ?

Try to :

$ npm install -g ionic@latest (may require a sudo)

$ npm install npm@latest -g (may require a sudo)

And now start a new projet

$ ionic start myapp

$ cd myapp

$ ionic serve

And tell me if your application get a white screen

Look at the browser console. It should display an error about what happened.

If not, try to create a new project with ionic start blank blank and directly run ionic serve to confirm that your installation can produce a working project and is fine.

Defintely, there was a silly error. Thanks.

I did and it worked. Thanks for that.

1 Like

Can you share what the problem was and mark that post as the solution?

I used ion-text as a main tag because I saw it somewhere but it does not exist as <ion-text …> Anyway, error should be displayed on the screen instead of a white screen.

How can I mark this issue as solved ? not very intuitive …

Well, tell us when you found a way to execute code to show an error after the app crashed because of invalid code :wink:

You click the three dots under the post and select “This reply solves the problem”. I already did that for you now.

for me the problem was calling another provider static injector in provider contructor, and it does not give any error

provider A inject B
provider B inject A

like recursion…

hope this someone…