sw-precache icon indicating copy to clipboard operation
sw-precache copied to clipboard

Cannot read property 'keys' of undefined

Open toonvanstrijp opened this issue 6 years ago • 1 comments

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'
  ]
};

toonvanstrijp avatar Nov 27 '17 10:11 toonvanstrijp

root isn't a supported option. Could you remove the root: 'wwwroot/', and see if that helps?

jeffposnick avatar Nov 27 '17 17:11 jeffposnick