I had this error using a FormGroup with Angular and Ionic.

How to fix Angular: No value accessor for form control with unspecified name attribute...

Solution

In my case, this was a stupid error I made. My code looked like this:

<ion-text class="mt-2" [formControlName]="'contact_email'"></ion-text>

This, of course, needed to be an <ion-input>-component:

<ion-input class="mt-2" [formControlName]="'contact_email'"></ion-input>

 

Saved you some valuable time?

Buy me a drink 🍺