TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script
I'm trying to add a service worker to a website.I'm using Node.js with Express.js,Vue.js and EJS.^ My node server (index.js) looks like : const https = require('https'); const fs = require('fs'); const express = require('express'); const app = express(); const router = express.Router(); const pool = require('./mysqldb.js'); const pathView = __dirname + "/views/"; var bodyParser = require("body-parser"); const listenPort = 8010; // Process application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: true })); // Process application/json app.use(bodyParser.json()); app.set('view