I am having some issues upgrading my PWA app from .15 to .16
I got a little frustrated thinking it may be something with my app itself, so I created a brand new PWA app from the new CLI and still have issues with the service worker path.
The app works fine, but the service worker never gets registered/updated
Basically here is my error,
Error during service worker registration: TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script.
my app is upload to a subdirectory on my domain, so the service worker is located there.
but the fresh PWA is trying to register a service worker located at the root & not the subdirectory
is this a bug? or am I missing a configuration option for the new PWA/workbox?
before I was using the build -> publicPath to control where all the files should be, but it seems like publicPath should be empty now.