Another possibility is that if you are using an HTML variable like #table or accessing it via ViewChild, make sure not to use *ngIf alongside it. Try removing *ngIf and see if the issue is resolved.This appraoch is tested in Angular V19.