I’ve just finished my first (very simple) Quasar SPA app, and I’ve tested it in Electron dev mode. It works well there on both my PC and on my Mac.
When I build it for production, though, my home page opens just fine, but my other pages are all blank. Even if I am on the home page and I try to access the home page via the navigation, the page goes blank.
Dev Tools for these blank pages shows:
I can’t think of anything about these blank pages that could cause the problem because they’re not doing much of anything from a JS perspective. They mainly just contain HTML content.
I see in Dev Tools under Sources that there are three folders: css, fonts, and JS, along with my index.html file.
But when I try to navigate to any of the pages that end up displaying blank pages, the JS folder disappears in the Sources list, leaving only the css and font folders.
Again, I get the same result when I build with either my Mac and my PC.
I’ve tried deleting the src-electron folder entirely and starting again, but that doesn’t help. And I can’t find anything via Google that gives me any good clues.
It’s baffling to me that the app would work fine on the simulator but would then fail so completely when building the actual app. And I don’t really know what to do next.
How can I resolve this?