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

后端 未结 12 1726
情书的邮戳
情书的邮戳 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:00

    In MenuPage.ts : add this over the class MenuPage:

    @IonicPage(
    {
      name: 'tabs-page'
    })
    

    In app.components.ts

    rootPage: string = 'tabs-page';
    

    Please try it!

提交回复
热议问题