Recently I have noticed that my PWA is no longer working on my Chrome 85.0.4183.127 on Android 10. I use code splitting using React lazy() load and Webpack 4.
When navigating to a lazy loaded resource my installed PWA on Android 10 reports
ChunkLoadError: Loading chunk 0 failed.
(missing: https://example.com/0.bundle.js)
The location for the 0.bundle.js in the above error message is incorrect. The correct path /dist/0.bundle.js
is defined in index.js
and serviceWorker.js
but Chrome seems to be looking in the root.
I have cleared the cache and updated the service worker to no avail.
When installing the PWA on my desktop computer (Windows 10 x64) - Chrome Version 86.0.4240.75 (Official Build) (64-bit) all is fine! The resources loads as expected!
How can I remedy this problem?
Kind regards /K