Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing service-worker file #13350

Closed
patoi opened this issue Jan 20, 2025 · 0 comments · Fixed by #13354
Closed

Missing service-worker file #13350

patoi opened this issue Jan 20, 2025 · 0 comments · Fixed by #13354
Labels
bug Something isn't working

Comments

@patoi
Copy link

patoi commented Jan 20, 2025

Describe the bug

With "@sveltejs/kit": "2.12.1", the service-worker/index.ts file compiled and generated in .svelte-kit/output/client/service-worker.mjs (see "Initial commit") as expected.

Issue:

With "@sveltejs/kit": "2.12.2", and later versions doesn't compile the service-worker/index.ts file and it's missing from the app dir (see "Issue" commit message)

Reproduction

https://github.com/patoi/issue-sveltekit-service-worker-build

Logs

System Info

System:
    OS: macOS 15.1.1
    CPU: (14) arm64 Apple M3 Max
    Memory: 135.00 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm
    pnpm: 9.12.3 - ~/.nvm/versions/node/v20.17.0/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.266
    Edge: 132.0.2957.115
    Safari: 18.1.1
  npmPackages:
    @sveltejs/adapter-auto: ^4.0.0 => 4.0.0 
    @sveltejs/kit: 2.12.2 => 2.12.1 
    @sveltejs/vite-plugin-svelte: ^4.0.0 => 4.0.4 
    svelte: ^5.0.0 => 5.19.0 
    vite: ^5.4.11 => 5.4.12

Severity

blocking an upgrade

Additional Information

We need to downgrade to SvelteKit 2.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants