Ionic 4 Migration Problems - alertController

Hey guys…

I tyring to migrate my ionic v3 project into ionic v4… I think my error i got is kind of dumb, but when I migrate my provider to a new service i got a error caused by my AlertController.

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

I think I have to do something in the app.module.ts or not? But what to do there…

import {AlertController} from “@ionic/angular”; -> in the service provider.

I think i solved it… using ionic-angular and @ionic/angular @sometime… ty

Late to the party, but this reply may be useful for anyone else stumbling upon the same issue.

Import AlertController in the module of HomePage (possibly app.module.ts) and add it as a provider:

import { AlertController } from ‘ionic-angular’;

providers: [
AlertController,
],