I’m trying to introduce service workers to a project that uses electron-forge, however I ran into an issue where the service worker script fails to load with the following error:
error when registering service worker TypeError: Failed to register a ServiceWorker: A bad HTTP response code (-1) was received when fetching the script.
The same code successfully loads the service worker script and registers when run with
A basic repo that demonstrates this issue is available at https://github.com/concreted/esw. Any ideas what is causing this divergent behavior between electron-forge and base electron?