Search code examples
angularangular-cliangular-cli-v6

Angular: Fix prod error for one module only


I am working with a team on angular application I am responsible for one module and I want to fix the ng build --prod error related to this module only.

How can I view/check the errors only produced by this module

Thank you.

Update:

The build process stop if there is errors before checking my module and I can't fix this errors because they are out of my responsibility. In other word I can't use ng build --prod to see the error of my module if there are error beforehead.


Solution

  • Make a clone of the project and reduce it so that you can see what's going on with your own module. Then run ng build --prod so that you can see the error, from there you should be able to fix it and push the solution to the original project.