Good morning everyone, I have generated a new project (blank) of ionic after updating everything.
I add a page (HomePage) with the cli generator, and I put it as a start page in app.components.ts but when doing ionic serve I get an error:
Uncaught (in promise): Error: No component factory found for HomePage. Did you add it to @ NgModule.entryComponents? noComponentFactoryError @ link
It only works if I include in app.module.ts in declarations and entry components HomePage, which I see, should not be given that the HomePage already has its start.module.ts
Any ideas?
Good @PabloLozano, I try to add the module in my app.components.ts:
import { BrowserModule } from '@angular/platform-browser';
import { HttpModule } from '@angular/http';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { MyApp } from './app.component';
import { InicioPageModule } from '../pages/inicio/InicioPageModule';
@NgModule({
declarations: [
MyApp,
],
imports: [
BrowserModule,
HttpModule,
InicioPageModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler}
]
})
export class AppModule {}
But I get this error:
Typescript Error Can not find module '../ pages / home / HomePageModule'.