Accepted answer

That error means you're having exceptions in your service worker file sw.js so service worker can not evaluate the related code. It can either be a syntax error or a runtime exception. In this case, this.addEventListner must be this.addEventListener instead.

Related Query

More Query from same tag