Ionic build fail production

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.

4 Likes