You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on May 1, 2020. It is now read-only.
bug:ionic-app-scripts build --prod lost some css #1120
With "@ionic/app-scripts": "^2.0.1" getting the following error after uglifyjs and webpack are finished during the --prod build: TypeError: Cannot read property 'forEach' of undefined
hey guys i just ram into this problem and for me, after upgrading to below configuration, th problem is gone now, NOTE THAT THE ionic-angular VERSION is 3.6.0, that wa what missing for me , I had 3.5.3
I have the same problem. When I build without --prod, it works, but with --prod it will simply load a blank page. If I check the console output it says it didn't find couple resource files (ie. main.css).
Activity
vkniazeu commentedon Jul 18, 2017
This issue might be a much bigger one, tied most likely to the
uglifyjsstep in the--prodbuild.I'm using the latest
"@ionic/app-scripts": "^2.0.2"and in production I started getting no CSS applied whatsoever.Replacing
main.csswith the dev version fixes the problem.This thread is related: https://forum.ionicframework.com/t/css-issues-when-building-in-prod-mode/96775
In short:
ionic serveworks fine,ionic cordova build browser --prodhas broken CSS.vkniazeu commentedon Jul 18, 2017
The issue is NOT present with
"@ionic/app-scripts": "^2.0.0".vkniazeu commentedon Jul 18, 2017
With
"@ionic/app-scripts": "^2.0.1"getting the following error afteruglifyjsandwebpackare finished during the --prod build:TypeError: Cannot read property 'forEach' of undefinedvkniazeu commentedon Jul 18, 2017
#1114 is related.
jgw96 commentedon Jul 20, 2017
Hello all! I am going to close this as a duplicate of #1114
shivamsngh commentedon Aug 7, 2017
hey guys i just ram into this problem and for me, after upgrading to below configuration, th problem is gone now, NOTE THAT THE ionic-angular VERSION is 3.6.0, that wa what missing for me , I had 3.5.3
Working for me now at,
cli packages:
ionic/cli-plugin-cordova : 1.6.2
ionic/cli-plugin-ionic-angular : 1.4.1
ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0
System:
Android SDK Tools : 25.2.5
Node : v7.5.0
OS : macOS Sierra
npm : 4.1.2
kael commentedon Oct 30, 2017
Got the same issue, lost CSS with
--prodmode, with the following config:flipmedia commentedon Apr 24, 2018
Any body got solution ? I am still same issue on 24 April 2018 ...
caio1985 commentedon Oct 21, 2018
I have the same problem. When I build without --prod, it works, but with --prod it will simply load a blank page. If I check the console output it says it didn't find couple resource files (ie. main.css).
pullatjunaid commentedon Oct 15, 2019
Same issue here....