No Component Factory Found for About Page


#1

Trying to learn ionic and stuck in adding navigation.
Following this tutorial
http://blog.ionic.io/10-minutes-with-ionic-2-adding-pages-and-navigation/
Error is keep coming : No Component Factory Found for About Page.
Simply trying to add link for about page in the home page

import { Component } from ‘@angular/core’;
import { NavController } from ‘ionic-angular’;
import {AboutPage} from ‘…/about/about’;
@Component({
selector: ‘page-home’,
templateUrl: ‘home.html’,

})
export class HomePage {
aboutPage = AboutPage

public name;

constructor(public navCtrl: NavController) {
this.name = “Some Name”;
}

}


#2

It looks like you haven’t yet imported the AboutPage in your app.module.ts

just import the AboutPage in app.module.ts located in App menu and add it to declarations and entryComponents.

import { AboutPage } from ‘…/…/pages/about/about’;
@NgModule({
declarations: [
MyApp,
AboutPage,



],
imports: [
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
AboutPage,



],
providers: […]
})