This error occurs because of missing dev dependency which is introduced newly in Angular 6.0 and above.


Install @angular-devkit/build-angular

npm install --save-dev @angular-devkit/build-angular
yarn add @angular-devkit/build-angular --dev

In some cases

npm install

ng update

and finally

npm update


By Rijwan Ansari

MVP, CSM, CSPO, MCP, MCTS. Sr. Software Developer. Expertise in ASP.NET MVC, Angular, AngularJs, .Net Core, C#.NET, Azure, Cognitive Services, Machine Learning, SharePoint, Azure Services, and tools, Requirement Analysis, Team Management, Pre-Sales and more. Ability to work independently and Team, handle pressure and meet commitment. Excellence Communication and adjust in any environment

Leave a Reply

Your email address will not be published. Required fields are marked *