Page modules and lazy loading

I’ve been creating my pages with the ionic CLI where it creates a page module for each page. But the tutorials I’ve been following just have me adding the pages directly to the app module and as variables when I push them onto the nav controller.

When I try and run ionic build prod it complains that I have the page declared in more than one module. Also, I would like to set up lazy loading for some pages. Can someone point me to a tutorial or an example that shows the proper use here?

Delete the page modules with you don’t want to be lazy loaded. and remove the lazy loaded pages from your app module.

See: New page Created Module.ts file

And take a look at:

I used ionic-angular-schematics to create the scaffolding for ‘Brew - The Craft Beer App’: