Skip to content

Missing service-worker file #13350

@patoi

Description

@patoi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions