PWA - hot reload causing errors
ssuess last edited by ssuess
After much testing, I have narrowed this down and it is always reproducible for me with the following steps:
quasar create newproject
- During setup choose all the defaults (the only deviation for me was choosing npm instead of yarn in the last step)
quasar dev -m pwa
- Open chrome devtools, make sure “Bypass for network” is selected in “Application”/“Service Workers” tab
- From project folder open
src/Index.vueand make any small change (I just removed the quasar img) and save file
RESULT: Quasar hot reloads with error, and in the dev tools console of chrome, the following message will be displayed one or more times:
GenerateSW has been called multiple times, perhaps due to running webpack in --watch mode. The precache manifest generated after the first call may be inaccurate! Please see https://github.com/GoogleChrome/workbox/issues/1790 for more information.
Because this is a brand new project coming from
quasar create, it seems highly unlikely to be related to any project changes I could have made. Here is the result of the
quasar infocommand for that folder:
Unless I hear some specific advice from someone here, I guess I will report this in github. But it really surprises me that no one else has experienced this, which makes me think that it could be something in my computer setup, but no idea what that could be…
NOTE: I recreated this post from an earlier one and deleted that one for clarity, only leaving the absolute minimum necessary to understand the issue and not to confuse things with my troubleshooting progress.
ssuess last edited by
Well, after heading over to github and doing a lot of searching, I seem to have found reference (if not a solution) to the problem here:
Hope this helps someone else.