How to fix Angular 'Cannot find control with unspecified name attribute'

Problem:

In your Angular2/4/5 application you see this error message:

Cannot find control with unspecified name attribute

Solution

Look for a statement in the HTML angular template like this:

[formControl]="myCtrl"

The error message means that myCtrl can’t be found. Check if this variable is present in your class - it needs be a FormControl which you can import from @angular/forms:

import { FormControl } from '@angular/forms';

In my case, changing it to

[formControl]="myControl"

fixed the issue