# A NavController Error -

**URL:** <https://forum.ionicframework.com/t/a-navcontroller-error/141084>\
**Category:** Ionic Framework\
**Created:** [September 7, 2018, 2:46pm UTC](https://forum.ionicframework.com/t/a-navcontroller-error/141084 "2018-09-07T14:46:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shamma75009](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@shamma75009](https://forum.ionicframework.com/u/shamma75009)\
**Post date:** [September 7, 2018, 2:46pm UTC](https://forum.ionicframework.com/t/a-navcontroller-error/141084/1 "2018-09-07T14:46:00Z")

</div>

Hello,

I add all of my page in my test app.module and app.component in order to use a sidemenu.

When i try to use one of them for a :

```auto
this.navCtrl.push('OtherPage'); 
		//Uncaught (in promise): Error: Type TicketsPage is part of the declarations of 2 modules: AppModule 
		// and TicketsPageModule! Please consider moving TicketsPage to a higher module that imports AppModule 
		//and TicketsPageModule. You can also create a new NgModule that exports and includes TicketsPage then 
		//import that NgModule in AppModule and TicketsPageModule.
		//Error: Type TicketsPage is part of the declarations of 2 modules: AppModule and TicketsPageModule! 
		//Please consider moving TicketsPage to a higher module that imports AppModule and TicketsPageModule. 
		//You can also create a new NgModule that exports and includes TicketsPage then import that NgModule 
		//in AppModule and TicketsPageModule.

```

I got this error on the comments.  
I try to find a solution without success. All solutions I try didn’t make it.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:17pm UTC](https://forum.ionicframework.com/t/a-navcontroller-error/141084/2 "2021-07-19T21:17:47Z")

</div>

Closed on July 19, 2021, 9:17pm UTC


