Why does build output differ from ionic serve output?

Hey all! I am testing out my frontend in prod environment, but it is just not working. Here is what it is supposed to look like (ionic serve):

And this is after running ionic build with different configs, web and PWA behind nginx:

Routes seem correct, router-outlet content seems to be incomplete and behind ion-page-invisible CSS class, and otherwise all files are loaded correctly.

Has anyone encountered anything like that? Can somebody nudge me into the right direction? I have no idea where else to look for errors. Thanks

A stripped down my entire project to find that I accidentally imported IonicModule in a standalone project. Apparently it works in dev, and when built it doesn’t give any error.

1 Like