[Solved] ng build --prod --aot => Error: Unknown argument: prod
Angular
Mohit Mozumder
Problem:
I try to build my angular project in production environment by "ng build --pord --aot" but suddenly i got this error-
Error: Unknown argument: prod
Solution:
According to Angular-Deprecated APIs and features reason for this error is the command -–prod is deprecated since Angular 12 and Removed in Angular 14. So now instead of --prod you have to use this command -
ng build --configuration production --aot
Thank you for reading the article. If you face any further problem feel free to contact us.