My Ionic Vue app seems to stop working on all devices after a new version is published of the app. The screen becomes white. Looking at the console it shows a message “unexpected char ‘<’”. If I open the culprit file (a js file with random name), I see that it contains the index.html page. After refreshing the app the issue disappears.
This occurs on every update. Did I do something wrong in the serviceworker?
The app is build in vue 3 with Ionic v6 & capacitor v4.