# Tabs Routing Module Error

**URL:** <https://forum.ionicframework.com/t/tabs-routing-module-error/181804>\
**Category:** Ionic Angular\
**Created:** [January 20, 2020, 8:45am UTC](https://forum.ionicframework.com/t/tabs-routing-module-error/181804 "2020-01-20T08:45:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FredyVzq](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@FredyVzq](https://forum.ionicframework.com/u/FredyVzq)\
**Post date:** [January 20, 2020, 8:45am UTC](https://forum.ionicframework.com/t/tabs-routing-module-error/181804/1 "2020-01-20T08:45:25Z")

</div>

Hi.  
I am new to ionic and I am trying to display a page within a tab, but when I run `ionic serve` I get the following error:

```auto
core.js:9110 ERROR Error: Uncaught (in promise): Error: Cannot find module 'src/app/pages/home/home.module'
Error: Cannot find module 'src/app/pages/home/home.module'

```

In my TabPage:  
`loadChildren:'src/app/pages/home/home.module#HomePageModule'`

I tried changing `loadChildren` to `component` in my tab-routing.module.ts but it doesn’t work. Also place `declarations: [NavigationPage]` but it doesn’t work either.

Thank you

---

<div class="post-metadata">

**Author:** ![SagarEspark](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SagarEspark](https://forum.ionicframework.com/u/SagarEspark)\
**Post date:** [January 20, 2020, 11:33am UTC](https://forum.ionicframework.com/t/tabs-routing-module-error/181804/2 "2020-01-20T11:33:28Z")

</div>

@FredyVzq! You may find your solution for this error in stackoverflow here:

> <https://stackoverflow.com/questions/41396839/exception-uncaught-in-promise-error-cannot-find-module-app-home-home-modul>

---

<div class="post-metadata">

**Author:** ![Doroth6y](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@Doroth6y](https://forum.ionicframework.com/u/Doroth6y)\
**Post date:** [January 23, 2020, 7:01pm UTC](https://forum.ionicframework.com/t/tabs-routing-module-error/181804/3 "2020-01-23T19:01:13Z")

</div>

This also allows you to handle errors before routing to the component.
