Playground from dev server does not load in Firefox #1196
Labels
[Aspect] Browser
[Aspect] Service Worker
[Priority] High
[Type] Bug
An existing feature does not function as intended
[Type] Developer Experience
When using
npm run dev
, Firefox 115.9.1esr is unable to load Playground fromhttp://localhost:5400/website-server/
.It starts loading but fails with the error:
Here's a full screenshot:

I am unable to get further information on the error, but I believe the error is likely due to the fact that Firefox does not support ES modules as ServiceWorker scripts. See the support matrix on MDN.
Interestingly, Playground from playground.wordpress.net loads fine in Firefox . There we are still registering the ServiceWorker with
type: "module"
, buthttps://playground.wordpress.net/sw.js
does not appear to have any module-related syntax. A snapshot of the current, transpiled sw.js content can be found here.Perhaps Firefox's lack of ServiceWorker module support is also causing #1180.
The text was updated successfully, but these errors were encountered: