Migrating to SvelteKit @sveltejs/kit@3.0.0-next.13
Version @sveltejs/kit@3.0.0-next.13 introduces 2 breaking changes. This guide details how to update your code.
Released: 7/29/2026
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
gotoerrordata-sveltekit-noscrolldata-sveltekit-keepfocusdata-sveltekit-resetpushStatereplaceStateApp.Error$app/manifest$app/tsconfigBreaking Changes
●Issue #1
The `noScroll` and `keepFocus` options of `goto` have been replaced by a single `reset` option. Update your `goto` calls to use `reset` instead of `noScroll` or `keepFocus`. Similarly, the `data-sveltekit-noscroll` and `data-sveltekit-keepfocus` attributes are now `data-sveltekit-reset`.
●Issue #2
The `error(status, {...})` function signature is deprecated. Use `error(status, message, {...})` instead, providing a message string as the second argument.
Migration Steps
- 1Replace `goto` options `noScroll` and `keepFocus` with the `reset` option.
- 2Update `data-sveltekit-noscroll` and `data-sveltekit-keepfocus` attributes to `data-sveltekit-reset`.
- 3Update calls from `error(status, {...})` to `error(status, message, {...})`.
Release Summary
This release introduces shallow routing to `goto` and preserves page state across reloads. It also includes several bug fixes and performance improvements, alongside breaking changes to `goto` options and the `error` function signature.
Need More Details?
View the full release notes and all changes for SvelteKit @sveltejs/kit@3.0.0-next.13.
View Full Changelog