this error ?
Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('https://localhost:8080/') with script ('https://localhost:8080/service-worker.js'): An SSL certificate error occurred when fetching the script
vue.config.js :
devServer: {
http2: true,
https: true,
host: "localhost",
}
change it to http://?
pwa does not work with http and it must be https
then you need to set up a HTTPS server
webpack it self has https server and it runs on it now
Then you need to make sure your browser trusts the cert
if webpack is auto running the servers im sure it's adding the certs in the browsers too
oh jeez I hope not
Обсуждают сегодня