Skip to content

fix(examples): upgrade sveltekit-ssr-zip to SvelteKit 3 - #935

Open
bnusunny wants to merge 4 commits into
mainfrom
fix/sveltekit-3
Open

bnusunny wants to merge 4 commits into
mainfrom
fix/sveltekit-3

Conversation

@bnusunny

Copy link
Copy Markdown
Contributor

Upgrades examples/sveltekit-ssr-zip to SvelteKit 3 and migrates its config so it still builds. Replaces #923.

#923 (Dependabot) bumps @sveltejs/kit 2.70.1 → 3.2.0 and @sveltejs/adapter-node 5 → 6, but on its own the example no longer builds: vite build stops with config_file_unsupported because SvelteKit 3 no longer reads svelte.config.js. CI doesn't build this example, so #923 shows green.

This PR keeps Dependabot's bump commit and adds one commit on top:

  • Delete svelte.config.js; pass the same settings to the plugin in vite.config.ts: sveltekit({ preprocess: vitePreprocess(), adapter: adapter() }).
  • tsconfig.json extends $app/tsconfig (SvelteKit 3 no longer generates .svelte-kit/tsconfig.json).
  • README: the setup step points at vite.config.ts instead of svelte.config.js.

Testing

Not checked: sam build/deploy and a live invoke. SvelteKit 3.2 expects TypeScript ^6 while the example pins ^5; nothing failed, so that bump is left for later.

dependabot Bot and others added 2 commits November 13, 2026 01:24
Bumps the security group with 1 update in the /examples/sveltekit-ssr-zip/app directory: [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit).


Updates `@sveltejs/kit` from 2.70.1 to 3.2.0
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@3.2.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 3.2.0
  dependency-type: direct:development
  dependency-group: security
...

Signed-off-by: dependabot[bot] <support@github.com>
SvelteKit 3 no longer reads svelte.config.js and fails the build with
config_file_unsupported. Pass the adapter and preprocessor to the
sveltekit() Vite plugin instead, and extend $app/tsconfig as svelte-kit
sync now requires.
@bnusunny
bnusunny requested a review from a team as a code owner November 16, 2026 21:24
@ckawl

ckawl commented Nov 25, 2026 •

Copy link
Copy Markdown

@bnusunny. One thing before we approve: on Node 22 (npm 10.9.9), npm ci and npm install fail with ERESOLVE, because @sveltejs/kit@3.2.0 expects typescript@^6.0.0 and the example pins ^5. The template uses nodejs22.x, so sam build (local and --use-container) would fail. It passes on Node 24 (npm 11), which is probably why it worked for you.

Could you bump typescript to ^6.0.0 and regenerate package-lock.json? With that change I checked on node:22: npm ci, npm run build, svelte-check (0 errors) and the Makefile steps all pass.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants