No directive found with exportAs 'matAutocomplete'. code example
Example: No directive found with exportAs 'matAutocomplete'
import { MatAutocompleteModule, MatFormFieldModule } from '@angular/material';
@NgModule({
imports: [
....
MatAutocompleteModule,
MatFormFieldModule,
....
],
....
})
export class AppModule { }