Skip to content
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

After update , Serveiceworker failed to install: #44

Closed
v3ss0n opened this issue Dec 16, 2016 · 9 comments
Closed

After update , Serveiceworker failed to install: #44

v3ss0n opened this issue Dec 16, 2016 · 9 comments

Comments

@v3ss0n
Copy link

v3ss0n commented Dec 16, 2016

Only way to get it working is to remove sw-toolbox.js and all references of it.
attached is the error :

service_worker_fail

@v3ss0n
Copy link
Author

v3ss0n commented Dec 16, 2016

it comes from >>
importScripts('sw-toolbox.js'); (1st line of sw.js )

@jkleinsc
Copy link
Owner

jkleinsc commented Mar 6, 2017

@v3ss0n I just published a new version (0.1.5). Can you test against this version and see if it resolves your issue?

@v3ss0n
Copy link
Author

v3ss0n commented Mar 11, 2017

(index):29 Error registering service worker:TypeError: Failed to register a ServiceWorker: ServiceWorker script evaluation failed
(anonymous)	@	(index):29

@v3ss0n
Copy link
Author

v3ss0n commented Mar 11, 2017

there is nothing but only console.log inside

@v3ss0n
Copy link
Author

v3ss0n commented Mar 11, 2017

screenshot_20170312_014539

@jkleinsc
Copy link
Owner

@v3ss0n what version of Ember are you trying to do this with? Also, what browser(s) have you tested this on?

@v3ss0n
Copy link
Author

v3ss0n commented Mar 14, 2017 via email

@jkleinsc
Copy link
Owner

@v3ss0n I found the problem. I'll release a new version with a fix, but until then you should be able to work around the problem by adding the following to config/environment.js:

ENV.serviceWorker = {
enabled: true
}

@jkleinsc
Copy link
Owner

Version 0.1.6 fixes this issue. Please note you will need to run npm install and you also should clear out the bad service worker code by going to chrome://settings/cookies and removing the data for localhost
screen shot 2017-03-16 at 3 08 42 pm

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

No branches or pull requests

2 participants