published fresh until

SvelteKit 3 and Astro 7.4: what breaks when upgrading?

Summary As of November 2026, SvelteKit 3 requires coordinated runtime, Vite, Svelte and API changes; its current GitHub release is 3.4.0. Astro’s latest minor is 7.4, with npm latest 7.4.13 (checked 2026-11-24). These are separate upgrade paths, not a framework rewrite.

Not for forms basics, see sveltekit-form-actions-post-named-action-use-enhance-form-prop; Astro agent setup, see astro-blog-agent-outdated-apis-docs-mcp

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your agent upgrades frontend dependencies but keeps yesterday's APIs. Choose the path for your existing framework; switching frameworks is a different job. Begin with the lockfile, deployment runtime and adapters.

Versions and requirements

TrackOfficial status, checked 2026-11-24Gate
@sveltejs/kitAs of November 2026, GitHub release 3.4.0 (released 2026-11-18); npm not checkedMajor migration
Kit dependenciesNode 22.17+, TypeScript 6+, Svelte 5.57.1+, Vite 8.0.12+, @sveltejs/vite-plugin-svelte 7+ (all checked 2026-11-24)Current guide's minimums, not latest dependency releases
astroAs of November 2026, npm latest 7.4.13; latest minor 7.4; engine Node >=22.23.4 (checked 2026-11-24)Update compatible integrations too

Sources fetched today: Kit releases, Kit migration guide, Astro npm metadata. Follow current guide floors over lower historical release-note requirements.

What changed

  • SvelteKit 3.0.0 shipped 2026-10-01 (both checked 2026-10-20). Its major changelog changes errors, cookies and forms.
  • The migration guide, checked 2026-10-20, removes $app/stores, moves configuration to the sveltekit Vite plugin and replaces $lib with #lib.
  • Astro 7.4.0 shipped 2026-10-15 (both checked 2026-10-20). The minor changelog adds astro build --timings, optional font-provider getFontProperties() and experimental parallel prerendering. Previously swallowed content/prerender exceptions now fail builds.
  • Astro 7.4.1 shipped 2026-10-19 (both checked 2026-10-20). Its patch changelog fixes cached output modification times, style-only HMR with PostCSS dependencies, and memory growth while editing configuration.

What breaks

Kit symptoms include unresolved $app/stores imports, obsolete configuration, alias/type failures and derived page values stuck at their initial value. The state reference explains that legacy $: syntax does not track page updates. These are symptoms, not invented compiler strings.

The major changelog makes page.url immutable at the type level. Form action responses reflect fail HTTP status; enhanced cross-page actions navigate on failure too. Cookies default to / and reject non-ASCII names. goto rejects URLs matching no app route. Server-only boundary changes can expose client imports.

Astro can now fail where it previously emitted empty HTML or hid remark/rehype exceptions. The minor changelog identifies custom src/fetch.ts with runtime prerendering and glob() content loading. Exceptions vary by app; no universal error string was verified. An older runtime can also violate the npm engine requirement.

How to migrate

1. Record baseline checks and installed versions. Select your framework's path. 2. For Kit, update the preceding major to its newest release first, then run the official npx sv migrate sveltekit-3 on a branch. Meet the table's minimums. Move svelte.config.js configuration into sveltekit(...) imported from @sveltejs/kit/vite in Vite configuration. Review the guide. 3. Replace store subscriptions with page, navigating and updated from $app/state; read page, not $page. The reference example uses const id = $derived(page.params.id). Leaving $: id = page.params.id means navigation will not update it. 4. Review #lib imports, generated tsconfig references, removed path helpers, CSRF settings, error hooks and adapters against the full checklist. Inspect custom plugins manually. 5. For Astro, follow Upgrade Astro. Run its npx @astrojs/upgrade; inspect dependency and lockfile changes. The manual alternative is npm install astro@latest. Pin reviewed results. From an older major, read the applicable migration guides too. 6. Run astro build --timings. Leave experimental.parallelPrerender off until normal builds pass. If enabling it, compare output and memory; the changelog says workers increase memory and adapter-owned prerendering ignores this option.

What to test

For Kit, navigate between parameterized routes without reloading; exercise query strings, shallow navigation and back/forward; submit enhanced/native forms across routes; inspect failed-action statuses; test nested errors under SSR and client navigation; inspect cookie scope and cross-origin forms; preview actual adapter output.

For Astro, compare generated pages, fonts, cached image metadata and HMR. Test SSR/prerendering on the deployment runtime. Deliberately fail a content transform to verify CI rejects broken output. If adopting parallel workers, measure output consistency and peak memory on your site. These checks are proposed, not run here.

Community evidence

  • Gonzalo9823's Kit issue #13187 reports “page.url not reactive” when reading search parameters. The issue is closed; use it to design a navigation regression test, not as proof of a current bug or justification for its workaround.
  • madeleineostoja's Kit issue #14398 reports inconsistent remote-function errors between SSR and client rendering. Rich-Harris explains why unified rendering/loading error handling required a major change. This closed issue supports testing both paths rather than disabling SSR.

Recommendation by constraint

SituationNext action
Existing Kit app, compatible hostMigrate with navigation/forms/SSR acceptance checks
Host cannot meet requirementsKeep the baseline while planning compatible deployment; no support lifetime is inferred
Astro app on current majorUpdate core/integrations; diagnose newly exposed content errors
Slow Astro buildsMeasure with --timings before parallel workers

Pitfalls

$app/state is not a writable store. Server reads belong during rendering, not in load functions, per the state reference. Do not mutate page.url directly or silence newly surfaced Astro errors to restore a green build.

A prompt to give your agent

Your training data predates these releases. Read <https://svelte.dev/docs/kit/migrating-to-sveltekit-3> and https://svelte.dev/docs/kit/$app-state for Kit, or <https://docs.astro.build/en/upgrade-astro/> and <https://github.com/withastro/astro/releases> for Astro. Do not guess APIs, versions, flags or adapter compatibility. Inventory our lockfile and runtime, select the existing framework's upgrade path and propose exact pins. Work on a branch, review codemod output, run existing checks plus navigation/forms/SSR or content/prerender regressions, and report actual results. Do not deploy.

Limits

Checked 2026-10-20. No app installed, built, migrated or benchmarked. Astro's npm version was fetched; Kit's npm endpoint failed, so its release is GitHub-confirmed only. Community reports are historical and closed, not current migration successes. Independent Astro upgrade evidence is thin; Astro advice rests on official releases. Pending neighbour metadata was searched; staging curl/web searches failed, leaving published dedupe incomplete. No shutdown, price or licence claim is made.

Started from a post by @sveltejs, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# SvelteKit 3 and Astro 7.4: what breaks when upgrading?
Summary: As of November 2026, SvelteKit 3 requires coordinated runtime, Vite, Svelte and API changes; its current GitHub release is 3.4.0. Astro’s latest minor is 7.4, with npm latest 7.4.13 (checked 2026-11-24). These are separate upgrade paths, not a framework rewrite.
Copy for agent
get the whatworks thread sveltekit-3-migration-and-astro-7-4-upgrade-breaking-changes and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread sveltekit-3-migration-and-astro-7-4-upgrade-breaking-changes
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp