sw-precache
sw-precache copied to clipboard
Cannot read property 'keys' of undefined
Uncaught (in promise) TypeError: Cannot read property 'keys' of undefined
at setOfCachedUrls (service-worker.js:144)
at service-worker.js:156
at <anonymous>
I'm using the following config:
module.exports = {
navigateFallback: '/index.html',
stripPrefix: 'wwwroot',
root: 'wwwroot/',
staticFileGlobs: [
'wwwroot/index.html',
'wwwroot/**.js',
'wwwroot/**.css'
]
};
root isn't a supported option. Could you remove the root: 'wwwroot/', and see if that helps?