I have a problem regarding the example of using the mat-autocomplete material design. The example function presented by google, gives an error in the build, as shown in the image.
Google example at : https://material.angular.io/components/autocomplete/overview#setting-separate-control-and-display-values
this.filteredOptions = this.myControl.valueChanges
.pipe(
startWith(''),
map(value => typeof value === 'string' ? value : value.name),
map(name => name ? this._filter(name) : this.options.slice())
);