Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Cannot read property 'keys' of undefined #338

Open
toonvanstrijp opened this issue Nov 27, 2017 · 1 comment
Open

Cannot read property 'keys' of undefined #338

toonvanstrijp opened this issue Nov 27, 2017 · 1 comment
Labels

Comments

@toonvanstrijp
Copy link

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'
  ]
};
@jeffposnick
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants