# Navigation between pages doesn't work

**URL:** <https://forum.ionicframework.com/t/navigation-between-pages-doesnt-work/160742>\
**Category:** ionic-v3\
**Created:** [April 4, 2019, 1:03am UTC](https://forum.ionicframework.com/t/navigation-between-pages-doesnt-work/160742 "2019-04-04T01:03:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alriabdu](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@alriabdu](https://forum.ionicframework.com/u/alriabdu)\
**Post date:** [April 4, 2019, 1:03am UTC](https://forum.ionicframework.com/t/navigation-between-pages-doesnt-work/160742/1 "2019-04-04T01:03:48Z")

</div>

Hello all, So i am trying to navigate to a newly created page on my ionic app, “Dashboard.” I, however, always keep getting this runtime error: “No component factory found for DashboardPage. Did you add it to @NgModule.entryComponents?”

I understand this error and I made sure the page (class) is added to both declarations and entryComponents. I, however, keep getting the same error. Can you please help ? Thanks!

Here is my app.module

```auto
import { BrowserModule } from '@angular/platform-browser';
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 { HomePage } from '../pages/home/home';
import { DashboardPage } from '../pages/dashboard/dashboard';
NgModule({
  declarations: [
    MyApp,
    HomePage,
    DashboardPage
  ],
  imports: [
    BrowserModule,
    AngularFireModule,
    AngularFireAuthModule,
    AngularFireModule.initializeApp(config),
    AngularFirestoreModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    DashboardPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    { provide: FirestoreSettingsToken, useValue: {} },
  ]
})
export class AppModule {}

```

AJ

---

<div class="post-metadata">

**Author:** ![stevekershaw](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@stevekershaw](https://forum.ionicframework.com/u/stevekershaw)\
**Post date:** [April 4, 2019, 3:08am UTC](https://forum.ionicframework.com/t/navigation-between-pages-doesnt-work/160742/2 "2019-04-04T03:08:34Z")

</div>

This comment about how to properly declare lazy loaded and non-lazy loaded pages might help you:

> [@Ionic build fail production](https://forum.ionicframework.com/t/ionic-build-fail-production/96358/11):
>
> Lazily loaded pages: are always referred to by string literals in code when dealing with the navigation system must be decorated with @IonicPage must have a corresponding IonicPageModule must not be declared in the app module Eagerly loaded pages: are always referred to by constructor (class name identifier) when dealing with navigation system must not be decorated with @IonicPage must be declared in the app module You can mix and match both kinds of pages, but for each page you must f…
