Ionic v4 migration issue


#1

When migrating my app to Ionic-V4 I get this error on all my pages that have forms

Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’

I think it might because we are moving to a new version of angular, but it is unclear to me, what steps I have to take to do the upgrade.

Typical error is


but FormsModule is included in the module.ts for the page


#2

@developergeme Try to include ReactiveFormsModule in the module.


#3

Great, that worked. I did see the stackoverflow article, but kind of ignored it as it was pure angular. but adding

import { ReactiveFormsModule} from ‘@angular/forms’;

and

@NgModule({
imports: [
TranslateModule.forChild(),
CommonModule,
FormsModule,
ReactiveFormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [SignuppersonalPage]

in module.ts for the page solved my problem


#4

Still not fixed for me