This issue may occur if there is no value assigned to the key used in the HTML template. To fix this, use the ternary (safe navigation) operator to handle undefined values.
Example: Before: <p *ngIf="someKey.Value"> Some Text
After: <p *ngIf="someKey?.Value"> Some Text