Type 'FormGroup' is not assignable to type 'FormControlLike'

Viewed 267

I turned ON Ivy compiler in my project which started in Angular 7 at the beginning and it is now running on Angular 9 and Ivy. So when running npm run build I got this errors:

Type 'FormGroup' is not assignable to type 'FormControlLike'.

The case:

<mat-step [stepControl]="firstFormGroup">

In TypeScript firstFormGroup is defined like this

firstFormGroup: FormGroup;

Anyone have any idea how to fix this? Thank you!

0 Answers
Related