None of these fixed the issue. Back then i was able to build the app, copy all files in the www folder and upload to my server and it worked. Now the index.html is blank.
But when i tried the steps here to upload to firebase hosting, it works:
I don’t know the root cause, but I have found an error that I can correct manually.
In index.html there is a line:
<base href="/"/>
With ionic serve, and with my test server, the code was in the root of the server directory, but when I uploaded it to the remote server it was in a subfolder and failed. when I changed “/” to “./” it worked.
An additional problem was that I just found that it was just randomly changed to:
<base href="app.scss"/>```
which clearly also does not work. I do not know how that happened, but changing it back to "./" fixed the problem.