I am migrating my ionic 3 app to ionic 4. Here is my ng --version output:
Angular CLI: 7.0.6
Node: 9.11.2
OS: linux x64
Angular: 7.0.4
… common, compiler, compiler-cli, core, forms, http
… language-service, platform-browser, platform-browser-dynamic
… router
Package Version
@angular-devkit/architect 0.10.6
@angular-devkit/build-angular 0.10.6
@angular-devkit/build-optimizer 0.10.6
@angular-devkit/build-webpack 0.10.6
@angular-devkit/core 7.0.6
@angular-devkit/schematics 7.0.6
@angular/cli 7.0.6
@ngtools/webpack 7.0.6
@schematics/angular 7.0.6
@schematics/update 0.10.6
rxjs 6.3.3
typescript 3.1.6
webpack 4.19.1
I have tried all options that have been suggested, which mostly happen to be app.module.ts.
Below is my app.module
@NgModule({
declarations: [AppComponent, ListComponent, ItemListComponent],
entryComponents: [],
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
IonicModule.forRoot(),
AppRoutingModule,
IonicStorageModule.forRoot({
name: "__mydb",
driverOrder: ["indexeddb", "sqlite", "websql"]
})
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
],
bootstrap: [AppComponent]
})
export class AppModule {}
Have been trying all options for ages, what am I missing?
Here is the Error message:
AppComponent_Host.ngfactory.js? [sm]:1 ERROR Error: StaticInjectorError(AppModule)[AppComponent -> Content]:
StaticInjectorError(Platform: core)[AppComponent -> Content]:
NullInjectorError: No provider for Content!