Mostafa Tabatabaei
Mostafa Tabatabaei

Reputation: 382

Failed to execute 'has' on 'CacheStorage': Unexpected internal error

i'm using service worker for PWA in NextJS12 application and I got this error :

Failed to execute 'has' on 'CacheStorage': Unexpected internal error.

I googled it but can't find any solution, do you have any solution for this error ?

Upvotes: 1

Views: 211

Answers (2)

sl-43
sl-43

Reputation: 98

i got a couple of issues while working with next-pwa so i just start using serwist and everything looks fine

Upvotes: 0

SAMUEL NZOMO
SAMUEL NZOMO

Reputation: 11

const withPWA = require('next-pwa')

 module.exports = withPWA({
   pwa: {
   disable: process.env.NODE_ENV === 'development', //make sure to disable PWA on development
   register: true,
   scope: '/app'      }
 })
 

Upvotes: 0

Related Questions