Describe the bug
When I updated from 203 to 210 I noticed that I was getting the following errors:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (service-worker.js, line 0)
[Error] Unhandled Promise Rejection: TypeError: Script http://localhost:3000/service-worker.js load failed
This happens with npm run preview and on the actual production site, so I've downgraded back to 206 for now.
Reproduction
https://github.com/kevinrenskers/sw-repro
Basically it's just the standard demo app, with adapter-node. Run npm run build and npm run preview, open the website, and look at the console.
Logs
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (service-worker.js, line 0)
[Error] Unhandled Promise Rejection: TypeError: Script http://localhost:3000/service-worker.js load failed
System Info
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Max
Memory: 1.07 GB / 32.00 GB
Shell: 3.3.1 - /opt/homebrew/bin/fish
Binaries:
Node: 17.0.1 - /opt/homebrew/bin/node
npm: 8.3.0 - /opt/homebrew/bin/npm
Browsers:
Edge: 96.0.1054.62
Safari: 15.2
npmPackages:
@sveltejs/adapter-node: next => 1.0.0-next.58
@sveltejs/kit: next => 1.0.0-next.211
svelte: ^3.34.0 => 3.44.3
Severity
blocking an upgrade
Additional Information
No response
Describe the bug
When I updated from 203 to 210 I noticed that I was getting the following errors:
This happens with
npm run previewand on the actual production site, so I've downgraded back to 206 for now.Reproduction
https://github.com/kevinrenskers/sw-repro
Basically it's just the standard demo app, with adapter-node. Run
npm run buildandnpm run preview, open the website, and look at the console.Logs
System Info
System: OS: macOS 12.1 CPU: (10) arm64 Apple M1 Max Memory: 1.07 GB / 32.00 GB Shell: 3.3.1 - /opt/homebrew/bin/fish Binaries: Node: 17.0.1 - /opt/homebrew/bin/node npm: 8.3.0 - /opt/homebrew/bin/npm Browsers: Edge: 96.0.1054.62 Safari: 15.2 npmPackages: @sveltejs/adapter-node: next => 1.0.0-next.58 @sveltejs/kit: next => 1.0.0-next.211 svelte: ^3.34.0 => 3.44.3Severity
blocking an upgrade
Additional Information
No response