You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error on production but not in dev
failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
<scripttype="module">
import {Workbox} from '/workbox/workbox-window.prod.mjs';
if ('serviceWorker' in navigator) {constwb=newWorkbox('/sw.js',{scope: '/',useCache: true});wb.register();window.workbox=wb;}</script>
Perhaps related to skip_waiting?
Additional Context
This was the first project I did with pwa-bundle, from 1.0, so it's possible that pwa.yaml isn't configured to 1.2 standards.
The text was updated successfully, but these errors were encountered:
Version(s) affected
1.2
Description
I get the following error on production but not in dev
failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
How to reproduce
Look at the console log in https://noise.survos.com/
Repo is at https://github.com/survos-sites/noise, but running in dev it works okay, and it even works okay running in prod locally.
Possible Solution
The error is here:
Perhaps related to skip_waiting?
Additional Context
This was the first project I did with pwa-bundle, from 1.0, so it's possible that pwa.yaml isn't configured to 1.2 standards.
The text was updated successfully, but these errors were encountered: