Had the same issue after migrating to Angular 19. It works again after updating to the latest angular version (19.1.6).
ng update @angular/cli@^19 @angular/core^19