Unknown Argument --Prod Angular Error Solved | Tutorial 4You | Latest 2023
Hey there, welcome to the Tutorial 4You channel. In this video, I'll be showing you how to solve an error that occurs when building an Angular project for production. If you've encountered the 'unknown argument –production' error, don't worry! This is due to the command '--prod' being deprecated in Angular 12 and removed in Angular 14.
To solve this error, simply replace the deprecated command with 'ng build --configuration production' when building your project for production. This will optimize your project for performance and resolve the error.
If you found this video helpful, please give it a thumbs up and consider subscribing to our channel to show your support. Thanks for watching, and I'll see you in the next video. Take care and have a great day!
Check Out My Blog:
https://tutorial4youchannel.blogspot.com/2023/03/unknown-argument-prod-angular-error.html