Here is the template code along with the error message I encounter when trying to build, even though it works fine with `ng serve`.
<input type="text" class="form-control unit-price" name="unit_price" [(ngModel)]="item.unit_price" #unitPrice="ngModel" required>
<span class="small text-danger" *ngIf="!unitPrice?.valid && unitPrice?.touched ">Field is Required</span>
https://i.sstatic.net/whZ94.png
Is there something crucial that I might be overlooking?
Do I need to declare that property in the component as well?