Lazy load pages random error:ERROR Error: Uncaught (in promise): invalid link:

后端 未结 12 1697
情书的邮戳
情书的邮戳 2021-01-01 14:35

I run into the following error every now and then.

ERROR Error: Uncaught (in promise): invalid link:MenuPage
    at d (polyfills.js:3)
    at l (polyfills.j         


        
12条回答
  •  天命终不由人
    2021-01-01 15:13

    Another case that can cause the problem is load a lazy-loaded page as a modal. If you want to use a page as a modal you should not make it lazy-loaded! After that you can use that page as a modal:

    modalCtrl.create(this.somePage).present();
    

提交回复
热议问题