# App not displaying for --prod build

**URL:** <https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485>\
**Category:** ionic-v3\
**Created:** [June 15, 2017, 8:07am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485 "2017-06-15T08:07:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorsrdic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorsrdic/32/73228_2.png) [@gregorsrdic](https://forum.ionicframework.com/u/gregorsrdic)\
**Post date:** [June 15, 2017, 8:07am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/1 "2017-06-15T08:07:49Z")

</div>

I am recently encountering a similar error.

When I run serve/build command **with --prod flag** and in **android/desktop chrome browser** - **platform ready is not being invoked** :S But it works in firefox and edge.

If I run the same commands without --prod flag, it works on all tested platforms.

Ionic info:  
**_global packages:_**  
@ionic/cli-utils : 1.4.0  
Cordova CLI : 7.0.0  
Ionic CLI : 3.4.0  
**_local packages:_**  
@ionic/app-scripts : 1.3.0  
@ionic/cli-plugin-cordova : 1.4.0  
@ionic/cli-plugin-ionic-angular : 1.3.1  
Cordova Platforms : android 6.0.0  
Ionic Framework : ionic-angular 3.3.0  
**_System:_**  
Node : v6.9.2  
OS : Windows 10  
Xcode : not installed  
ios-deploy : not installed  
ios-sim : not installed  
npm : 3.9.3

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 15, 2017, 10:36am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/2 "2017-06-15T10:36:18Z")

</div>

What exactly are the commands you use to run/build?  
Where and how exactly are you testing?

---

<div class="post-metadata">

**Author:** ![gregorsrdic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorsrdic/32/73228_2.png) [@gregorsrdic](https://forum.ionicframework.com/u/gregorsrdic)\
**Post date:** [June 20, 2017, 6:39am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/3 "2017-06-20T06:39:59Z")

</div>

I have added “build-prod”: “ionic-app-scripts build --prod” to scripts in package.json and I run “npm run build-prod” and after it is done I copy the www folder to the ftp server.  
I have done more research, it turns out “platform ready” is firing (I have added a console output) but the web page remains blank, although in console seems like everything has loaded as usual, perhaps the screenshot will be of some use:

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/4/f/4fb20ee3319e989bf1c352e17073d60de90eeb7e.png)

---

<div class="post-metadata">

**Author:** ![gregorsrdic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorsrdic/32/73228_2.png) [@gregorsrdic](https://forum.ionicframework.com/u/gregorsrdic)\
**Post date:** [June 20, 2017, 6:50am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/4 "2017-06-20T06:50:09Z")

</div>

It is the same, if I run the app on the device with command “ionic cordova run android --prod”  
If I run ionic “cordova run android” it works ok on the Android device as well  
(there are less console logs on this screenshot because there are no saved credentials and user would be redirected to the login page)

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/0/8/081720b0ee6726d149d1444b1aee33a47ce50f79.png)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 20, 2017, 7:19am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/5 "2017-06-20T07:19:40Z")

</div>

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: [https://ionic.zone/debug/remote-debug-your-app#android](https://ionic.zone/debug/remote-debug-your-app#android) Look at the console and network tabs for errors.

---

<div class="post-metadata">

**Author:** ![gregorsrdic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorsrdic/32/73228_2.png) [@gregorsrdic](https://forum.ionicframework.com/u/gregorsrdic)\
**Post date:** [June 20, 2017, 11:56am UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/6 "2017-06-20T11:56:38Z")

</div>

Thanks for the suggestion, but the second screenshot is from the ADB connection to the Android device and chrome developer tools. There is nothing in the network tab as well. Thanks to my colleague, the solution was removing some color entries from the variables.scss as proposed here: [https://github.com/ionic-team/ionic-app-scripts/issues/506](https://github.com/ionic-team/ionic-app-scripts/issues/506).

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 20, 2017, 12:01pm UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/7 "2017-06-20T12:01:02Z")

</div>

> [@gregorsrdic](#):
>
> Thanks for the suggestion, but the second screenshot is from the ADB connection to the Android device and chrome developer tools.

Sorry 😕

Please add your details to the issue so the team has more information on what to fix.

---

<div class="post-metadata">

**Author:** ![gregorsrdic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorsrdic/32/73228_2.png) [@gregorsrdic](https://forum.ionicframework.com/u/gregorsrdic)\
**Post date:** [June 20, 2017, 12:34pm UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/8 "2017-06-20T12:34:30Z")

</div>

I removed the additional variables.scss and now it works, so no fix required.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 20, 2017, 1:12pm UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/9 "2017-06-20T13:12:58Z")

</div>

Breakage without no feedback on doing something quite normal should be fixed 🙂

---

<div class="post-metadata">

**Author:** ![gregorsrdic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gregorsrdic/32/73228_2.png) [@gregorsrdic](https://forum.ionicframework.com/u/gregorsrdic)\
**Post date:** [June 20, 2017, 1:43pm UTC](https://forum.ionicframework.com/t/app-not-displaying-for-prod-build/94485/10 "2017-06-20T13:43:14Z")

</div>

true, but there is already an issue on the github for that …
