Site icon The Perpetual Student

Angular prod build using “ng build /serve –prod”

Angular

While working on my Electron application my login functionality didn’t function anymore.

Root Cause

Updated Angular CLI and uglify also got updated.  The newest uglify version breaks builds.

Solution

Run the following to temporarily go back to a working version:

npm i uglify-es@3.2.2 --save-exact && rm -rf package-lock.json node_modules && npm i && npm ls uglify-es

 

Exit mobile version