My set up: NX + Angular 19 with internal library.
For me, this bug occurs when all three conditions are met:
I am using a component without exporting from library
I am using that component inside @defer{} block
I am NOT using hmr.
What really tricky is: if you are using hmr this just works fine.
Seems like a nastly angular bug.