I've searched for solutions to this question without success.
Although the error in the title isn't impacting the app's functionality, I'd like to resolve it.
<div *ngIf="currentUserData.healthCarePlans.length > 0">
<p-carousel numVisible="3"
[value]="currentUserData.healthCarePlans">
<ng-template let-insurance pTemplate="insurance">
<div>
<img class="company-header-avatar hc-img"
[src]="insurance.imagePath">
<div class="ui-g-12 hc-info">
<div class="ui-g-6">
{{insurance.healthCareCompany.person.companyName}}
</div>
<div class="ui-g-6">
{{insurance.code}}
</div>
</div>
</div>
</ng-template>
</p-carousel>
</div>
I attempted to use the safe operator as a solution, but it did not work in this scenario.