app-framework icon indicating copy to clipboard operation
app-framework copied to clipboard

ExtendableEvent is not defined error

Open webmass opened this issue 8 years ago • 6 comments

Hi,

I always have (in both dev and build) : Uncaught ReferenceError: ExtendableEvent is not defined at offline-service-worker.js:3 at Object. (offline-service-worker.js:3) at n (offline-service-worker.js:3) at offline-service-worker.js:3 at offline-service-worker.js:3

webmass avatar Nov 27 '17 10:11 webmass

Do you have details how I can reproduce the error? Your setup?

scriptPilot avatar Jan 02 '18 18:01 scriptPilot

seems like offline-plugin is throwing error. Getting same erro with Quota Exceeded in Google chrome. The demo here link gives this error as well.

xerosanyam avatar Jan 09 '18 14:01 xerosanyam

@xerosanyam - OK, what do you try to store in the app, could the mass of data be the reason for that? In wich way do you try to store data in the app? In addition, if reasonable, please open a bug for the offline plugin and create the reference here.

scriptPilot avatar Jan 10 '18 14:01 scriptPilot

@scriptPilot I don't store anything explicitly. This happens with default configuration. Here is the link to issue created on offline-plugin https://github.com/NekR/offline-plugin-pwa/issues/4

xerosanyam avatar Jan 11 '18 04:01 xerosanyam

We're getting the same error here, it seems that if you host your app in a subpath like :

https://www.hostname.com/subpath/app.js https://www.hostname.com/subpath/offline-service-worker.js

The app will try to load the offline-service-worker.js without taking the subpath into account :

https://www.hostname.com/offline-service-worker.js

Which give us this error :

Failed to load resource: net::ERR_INVALID_RESPONSE https://www.hostname.com/offline-service-worker.js
index.html:1 Uncaught (in promise) TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script.
offline-service-worker.js:3 Uncaught ReferenceError: ExtendableEvent is not defined
    at offline-service-worker.js:3
    at Object.<anonymous> (offline-service-worker.js:3)
    at n (offline-service-worker.js:3)
    at offline-service-worker.js:3
    at offline-service-worker.js:3

acourtiol avatar Feb 16 '18 09:02 acourtiol

I've the same issue on my project

jbclavier avatar Feb 16 '18 09:02 jbclavier