I have a Nuxt 3 app that is used both in the browser and as a PWA. The app is primarily used on tablets. I’m having an issue with version updates. When the app refreshes itself during an update in most cases the user ends up with a 500 error “undefined is not an object (evaluating ‘I._s’)”
On a hard reload the error disappears.
This is a issue for users as they are not familiar with how to hard reload a browser page on a tablet.
When running the app as a PWA the PWA must be removed from the device and recreated to get it working again. The issue with that is we are using Local Storage and when the PWA is removed so is the Local Storage.
Is this a configuration issue?
We do have 2 plugins we created to prevent the app from reloading a page while the page the user is working on has unsaved changes (one for browser updates and one for PWA updates). All they do is defer the update until the user navigated to a new route. Could those be causing the issue?