I\'m using create-react-app with an express server.
create-react-app has a pre-configured ServiceWorker that caches local assets (https://github.com/fac
The script has an unsupported MIME type ('text/html'). Failed to load resource: net::ERR_INSECURE_RESPONSE (index):1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html').
Code for template.js root file
export default ({ markup, css }) => {
return `
MERN Marketplace
${markup}
`;
};