I have an Angular CLI workspace containing two library projects, foo
and bar
. When I build the second of the two libraries, foo
, the b
I had the same issue, but the solution of @Agius did not help.
I had:
Angular Workspace
- projects
- lib1
- lib2
- src
- test application
In fact I had moved a component from lib2 to lib1, by dragging the folder in WebStorm. By doing this, the references in lib2 to that component were not removed but updated and pointed to the source-folder of lib1. I forgot to remove these references which were no longer needed in lib2. After removing all references to the component in lib2, that library compiled.
I had to remove the references in
Maybe there are more references in your project.