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
When you add a page using Ionic CLI for example
ionic generate page newPage
then it automatically generates file newPage.module.ts and inside newPage.ts it generates a line of text as
@IonicPage()
Well, you must delete newPage.module.ts and delete @IonicPage() from newPage.ts
then open app.module.ts and add newPage inside declarations and entry components.