kadoshms / ionic2-autocomplete

Ionic 2 autocomplete component
MIT License
149 stars 108 forks source link

Not working in Ionic 4 #165

Open turnono opened 6 years ago

turnono commented 6 years ago

It was working fine in Ionic 3. But since i a have upgraded to Ionic 4, I am getting the below error:

ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[Searchbar -> Platform]: StaticInjectorError(Platform: core)[Searchbar -> Platform]: NullInjectorError: No provider for Platform!


my code

<ion-auto-complete (itemSelected)="selectedLocation($event)" [dataProvider]="citiesProvider"></ion-auto-complete>
RELAXccc commented 5 years ago

you still need to add AutoCompleteModule to @NgModule({imports: [ same as in ionic 3

jrquick17 commented 5 years ago

Check out ionic4-auto-complete