Templates throw error on sw-debug.js #2446
Replies: 2 comments 7 replies
-
Hi @mattrossman, apologies for the delay. I wonder if we fixed this somehow because I just tried |
Beta Was this translation helpful? Give feedback.
-
This is related to Preact's debug service worker. Something activates if your app runs on port 8080 (default) or any other you had Preact app running previously. Even their own unbundled tool Run your non-Preact app on any other port for quick workaround, bug them if this makes you angry and you want this fixed. |
Beta Was this translation helpful? Give feedback.
-
Someone brought this up in #2224 but it was closed without resolution. I've started projects with:
yarn create snowpack-app my-app --template @snowpack/app-template-react
and
yarn create snowpack-app my-app --template @snowpack/app-template-react-typescript
A simple
yarn start
in either project produces a 404 error for/sw-debug.js
This probably shouldn't be happening in a starter template, so how should this be resolved? Starting this as a discussion per @FredKSchott's request.
Beta Was this translation helpful? Give feedback.
All reactions