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