Closed mastepanoski closed 4 years ago
I could not reproduce the error, need more information. But this error usually happens if self.addListener is executed in a nested block
It's weird, It only appears the first loading, if you press Ctrl F5 the error leaves. I close the browser, re-enter and do the same. I am going to check if there is a nested listener.
There is no nested listener. I used the service worker generated by PWA "as is". If I remove next-pwa everything works as I expected. It is a issue related with the runtimeCaching, because it is not refreshing some contents until I press Ctrl F5, then the contents refresh and the errors related to the handlers disappear from the console. I am going to do a deeper research in this regard.
I've added next-pwa, configured next.config.js:
And Firefox triggered on the console:
I've configured my next project with express, and these are the lines I added to find sw.js:
I've configured CSP:
These are my dependencies:
The Node version: 12.16.1 The Next version: 9.2.2