I'm facing the same issue. Commonly what I do is, to edit index.html and add a dot before the path of the JS file of the app and it solves the error and the webapp its showing.
But now for me, it doesnt show the assets, like vectoricons and images. But when I serve the webapp by terminal it shows the assets successfully