Cannot resolve symbol 'mat-form-field', Can't bind to [(ngModel)] since it is not provided by any applicable directives

Viewed 95

Hello so I have all the imports in my appModule, but the form components are still erroring and not working. Can someone advise?

app.module:

@NgModule({
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    HttpClientModule,
    MatFormFieldModule, MatInputModule, MatTableModule, MatPaginatorModule, MatSortModule
  ],
  declarations: [
    AppComponent,
    SearchComponent,
    ExportComponent
  ],

First error:

first error

Second error:

second error

0 Answers
Related