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

Failed to parse SourceMap #148

Closed
LandonSchropp opened this issue Jul 30, 2016 · 1 comment
Closed

Failed to parse SourceMap #148

LandonSchropp opened this issue Jul 30, 2016 · 1 comment

Comments

@LandonSchropp
Copy link

I'm running into an issue when trying to create a service worker for my CDN assets. Here's what my Gulp task looks like:

'use strict'

const gulp = require('gulp')
const swPrecache = require('sw-precache')

const runtimeCaching = [
  {
    urlPattern: /^https:\/\/cdnjs\.cloudflare\.com/,
    handler: 'networkFirst'
  }
]

gulp.task('serviceWorker', (callback) => {
  swPrecache.write("build/service_worker.js", { runtimeCaching }, callback)
})

When I load the service worker into my browser, I get this error:

Failed to parse SourceMap: http://localhost:3000/build/sw-toolbox.map.json

Issue #93 seems related, but it's closed and I'm still seeing this issue with 4.0.0. Is there some way to turn off the source map or to generate the source map to get this error to go away?

@jeffposnick
Copy link
Contributor

I'm closing this in favor of GoogleChromeLabs/sw-toolbox#169

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

No branches or pull requests

2 participants