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

后端 未结 11 2503
花落未央
花落未央 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:48

    This issue may occurs when you're using angular 2+ naming conventions, where it's used to be like my-app.component.ts, updating to the ionic 3 naming convention my-app.ts, you'll be able to use the @IonicPage() decorator if you need it.

提交回复
热议问题