# Ionic build fail production

**URL:** <https://forum.ionicframework.com/t/ionic-build-fail-production/96358>\
**Category:** ionic-v3\
**Created:** [June 29, 2017, 8:11pm UTC](https://forum.ionicframework.com/t/ionic-build-fail-production/96358 "2017-06-29T20:11:43Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [June 29, 2017, 10:06pm UTC](https://forum.ionicframework.com/t/ionic-build-fail-production/96358/11 "2017-06-29T22:06:25Z")

</div>

> [@mtnptrsn](#):
>
> This is quite confusing.

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 follow one set of rules or the other completely.

---

_[View the full topic](https://forum.ionicframework.com/t/ionic-build-fail-production/96358)._
