title: Error 'No value accessor for form control with name' with ionic 5 and Angular 9 using reactive form
body: <p>I'm working with ionic 5 and Angular 9. I'm trying to create a reactive form but I got the error 'No value accessor for form control with name: 'lastname''.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>export class ModalComponent implements OnInit {
  
    public form: FormGroup;
  
    constructor(private modalController: ModalController,
                private formBuilder: FormBuilder) { }
  
    ngOnInit(): void {
      this.initForm();
    }
  
    public close(): void {
      // using the injected ModalController this page
      // can "dismiss" itself and optionally pass back data
      this.modalController.dismiss({
        'dismissed': true
      });
    }
  
    public initForm(): void {
      this.form = this.formBuilder.group({
        firstname: ['', Validators.required],
        lastname: ['', Validators.required]
      });
    }
  
    logForm(){
      console.log(this.form.value)
    }
  }
  </code></pre>
  
  <pre><code>&lt;form [formGroup]="form" (ngSubmit)="logForm()" novalidate&gt;
      &lt;ion-item&gt;
        &lt;ion-label&gt;Last name&lt;/ion-label&gt;
        &lt;ion-input type="text" formControlName="lastname"&gt;&lt;/ion-input&gt;
      &lt;/ion-item&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Edit :
  I just found the problem. I was missing the import IonicModule in my module.</p>