Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng build --prod UnhandledPromiseRejectionWarning: Unhandled promise rejection

Tags:

angular

Angular 4.3 I get the following error when trying to ng build --prod

94% asset optimization(node:7184) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token: name (i)

I have no idea where this issue stems from as thats the only error I can find.

like image 754
Tyler Avatar asked Sep 19 '17 18:09

Tyler


1 Answers

Revert the angular CLI version 1.3.2 until this bug gets fixed:

npm install @angular/[email protected] (add -g if you are using a global package)

You should be able to build now :).

like image 116
Maxime Dupré Avatar answered Sep 21 '22 04:09

Maxime Dupré