Workbox: Uncaught TypeError: quota_mjs.registerCallback is not a function

Created on 25 Jun 2018  路  4Comments  路  Source: GoogleChrome/workbox

Library Affected:
workbox-cache-expiration

Browser & Platform:
All browsers

Issue or Feature Request Description:

Hi,

I'm trying to use the new purgeOnQuotaError option but I'm getting the following console error:

image

Looking at the PR of the change seems that the import is done from the workbox-core/_private/quota.mjs file directly, but while debugging the method seems that the iife ran passing the code workbox-core/_private.mjs, as you can see the quota_mjs object having the registerQuotaErrorCallback function but not the other one. I'm not familiar with the compilation process, so I don't really know where that module comes from or if I'm doing something wrong myself.

I'm using workbox 3.3.0 and generating the SW file with the generateSW entry point. Thank you!

All 4 comments

Sorry鈥攖his is fixed by #1552, and should make it into an upcoming v3.3.1 release.

@jeffposnick I'm getting Uncaught TypeError: quota_mjs.registerQuotaErrorCallback is not a function when trying to use purgeOnQuotaError on 3.5.0. Can it be related to this issue?

@salmoro #metoo

I've created #1642 to track this.

Was this page helpful?
0 / 5 - 0 ratings