Page has a @IonicPage decorator, but it does not have a corresponding “NgModule”

后端 未结 11 2518
花落未央
花落未央 2020-12-16 11:06

I was working on page navigation in Ionic. After using ionic serve, I got this error:

The Page with .ts extension has a @IonicPage decorator, but

11条回答
  •  情书的邮戳
    2020-12-16 11:54

    I just removed the following attribute from the component page:

    
    @IonicPage()
    

    Other ionic example pages don't even have it. Seems like the ionic CLI is outdated (I'm guessing you used that to generate the page component).

提交回复
热议问题