-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServiceWorker throws errors because loadersMap is undefined #135
Comments
Does not actually work until NekR/offline-plugin#135 is fixed.
Does not actually work until NekR/offline-plugin#135 is fixed.
Hey @mstange, many thanks for the PR and for finding this issue. Main reason why I don't always expose loaders to It's indeed unfortunate that you had to use beta version (which I actually tag |
Okay, I committed it. @mstange can you check if it works now for you? |
Thank you very much! The service worker works now. I still get a reference error complaining about an unchecked options.allowLoaders access, but I'm not sure how fatal that is. ('ReferenceError: reference to undefined property "allowLoaders"', in
Since version 3 is not an option for me, would it help if I downgraded to 4.4? I can do that if you fix that other bug that I ran into (the one with |
Ah, the allowLoaders thing is just a warning, not an error. |
That's weird because I don't see anything like this. Do your use Flux or TypeScript or maybe just eslint and run it against generated output of your project? |
I'll release 4.5 out of beta soon. Need to solve/test some other things before that. |
I have tracked down why I was seeing the allowLoaders warning: I was testing in a Firefox instance which I had launched using the Firefox add-on SDK's |
Okay, closing this now then :-) |
@mstange if something |
Great! It's working very well for me now, after I figured out how I could redirect all unknown URLs to index.html using |
@mstange yeah, |
I think all it needs is documentation, the API is pretty clear I think. It might also be worth adding a My only remaining problem with the ServiceWorker is that I'm not properly accepting the new ServiceWorker when I'm reloading the page in Firefox - sometimes I have to forcefully unregister the old ServiceWorker in about:debugging or I keep seeing the old cached assets. |
I'll look into it a bit later, not enough free time this days. |
But thanks for feedback and everything, it's definitely appreciated, I'll just handle that later. |
I'm using 4.5.0-beta.5 and am getting errors during the service worker installation. My __wpo does not contain a "loaders" key, so loadersMap is undefined, so Object.keys(loadersMap) fails.
I'm using the beta version because version 3 does not allow absolute paths and because 4.4.1 contains the wrong bit
new URL(externals[path], location)
which was fixed in e323307.The text was updated successfully, but these errors were encountered: