I faced the same issues. In the end it turned out some of my packages were using View Engine libraries, whose support was removed in angular 16 since the Angular Compatibility Compiler (ngcc) is removed in v16.