title: Lazy load pages random error:ERROR Error: Uncaught (in promise): invalid link:
body: <p>I run into the following error every now and then. </p>
  
  <pre><code>ERROR Error: Uncaught (in promise): invalid link:MenuPage
      at d (polyfills.js:3)
      at l (polyfills.js:3)
      at Object.reject (polyfills.js:3)
      at NavControllerBase._fireError (nav-controller-base.js:322)
      at NavControllerBase._failed (nav-controller-base.js:310)
      at nav-controller-base.js:365
      at t.invoke (polyfills.js:3)
      at Object.onInvoke (core.es5.js:4125)
      at t.invoke (polyfills.js:3)
      at n.run (polyfills.js:3)
      at polyfills.js:3
      at t.invokeTask (polyfills.js:3)
      at Object.onInvokeTask (core.es5.js:4116)
      at t.invokeTask (polyfills.js:3)
      at n.runTask (polyfills.js:3)
  </code></pre>
  
  <p>I'm not aware of any steps to reproduce and <strong>this error is not causing any problem at all</strong> The app is working normally and the Menu Page is displayed correctly. </p>
  
  <pre class="lang-js prettyprint-override"><code>import { Component, ViewChild } from '@angular/core';
  import { IonicPage, NavController, NavParams } from 'ionic-angular';
  import { Nav, Platform } from 'ionic-angular';
  
  @IonicPage({
    name: "menu",
    segment: "app"
  }
  )
  @Component({
    selector: 'page-menu',
    templateUrl: 'menu.html'
  })
  export class MenuPage {}
  </code></pre>
  
  <p>I had checked my project and the menu page is only used by its <code>IonicPage</code> name <code>"menu"</code>.</p>
  
  <p>There is already an ionic forum <a href="https://forum.ionicframework.com/t/solved-ionic-3-lazy-loading-invalid-link-tabspage/88021" rel="noreferrer">post</a> but I am already following the proposed accepted solution which is about giving a name to the <code>IonicPage</code> annotation. </p>