So, it turns out that this simply indicates a JS error in the Service Worker code, so the registration cannot complete.
Download chrome: // serviceworker-internals / and check the box "Open DevTools" and pause JavaScript when starting Service Worker for debugging.
Then the inspector will appear when you refresh the page, which will allow you to see the error in Service Worker.
source share