I am working on a monorepository that houses multiple angular (v7) applications.
Angular AOT compilation with webpack gives me trouble.
The top-level structure looks like this:
- application 01
- node_modules
- src
- application 02
- node_modules
- src
- ...
- shared
- node_modules
- src
All application can use code from the shared folder. Everything works perfectly until AngularCompilerPlugin's second compilation phase is run.
It throws errors like:
Module not found: Error: Can't resolve '../../../../../../../Shared/node_modules/@angular/material/button/typings/index.ngfactory'
Components and services from the shared folder seem not to be created and/or included in the compilation.
Has anyone stumbled over a similar issue?
Is it possible to make the AngularCompilerPlugin included factory files from multiple source directories?
Thank you for you help.