goldhand/sw-precache-webpack-plugin

I build production under Windows environment file error don't understand

Closed this issue · 5 comments

image
Uncaught (in promise) DOMException: Failed to register a ServiceWorker: An SSL certificate error occurred when fetching the script.
image
I am running in the HTTPS protocol

I believe it needs a valid SSL certificate unless it's running on localhost.

it's running on localhost but it doesn't work.
SSL certificate are generated in the localhost.

It may be running on localhost, but it looks like you're accessing it via 172.16.0.45, which the browser doesn't recognize as localhost. This shouldn't matter though because it is via https and you're using certs...

All I can say is that the errors are saying something is wrong with the SSL Certificates.

closing due to this being an ssl cert issue