Could not find the implementation for builder @angular-devkit/build-angular:dev-server
Issue Description
Angular build command gives below error,
Could not find the implementation for builder @angular-devkit/build-angular:dev-server
Resolution
This is how I was able to fix these issues and was able to build an Angular app on the latest CLI.
Steps to fix all issues
- Install devkit and builder package
npm i @angular-devkit/build-angular
It’s preferred to uninstall the version first using the below commands and retry installing the pacakge,
npm uninstall @angular-devkit/build-angular
For any error with the above command please visit below error checklist
- Run ng update command to get a list of all dependencies required to be upgraded.
ng update
- Upgrade the angular core packages as listed above, you may find more packages in the list depending on app complexities.
ng update @angular/cli @angular/core
OR
ng update @angular/cli @angular/core --allow-dirty --force
- Build the app using ng build
ng build
Finally, the build is successful.
For any issue if still surfacing, you may try deleting node_module folder manually or using below command and performing above steps again.
npm rm -rf node_modules
Other references:
That’s all! Happy coding!
Does this help you fix your issue?
Do you have any better solutions or suggestions? Please sound off your comments below.
Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.