Posts

Showing posts with the label production

ng build works but not with --prod

ng build works but not with --prod My > ng serve or > ng build command doesn't produce any error and the application runs. but when I run > ng build --prod , it throws the below error. I tried to find a lot on the internet and tried many things like > ng serve > ng build > ng build --prod but still, the error persists. P.S.: Downvoters , please specify the solution first or any digestible reason, or just skip this question without touching it as you can't evaluate the situation. BUT DON'T CREATE NUISANCE . C:wampwwwngapp>ng build --prod 10% building modules 3/3 modules 0 activeWarning: Can't resolve all parameters for LoginService in C:/wamp/www/ngapp/sr c/app/abstract/login.service.ts: ([object Object], ?). This will become an error in Angular v6.x Warning: Can't resolve all parameters for UserService in C:/wamp/www/ngapp/src/app/abstract/user.service.ts: ([object Ob ject], ?). This will become an error in Angular v6.x Date: 2018-06-30T0...