Closed hexagon6 closed 4 months ago
Which version of SvelteKit are you using? Make sure it's the latest one.
Which version of SvelteKit are you using? Make sure it's the latest one.
In package.json
:
"@sveltejs/kit": "^2.5.0"
I updated to 2.5.7 and now this error has gone, but some components don't render anymore, will investigate further.
Thanks @dummdidumm for the quick response!
Describe the bug
When upgrading a svelte 4 sveltekit application to svelte 5 I see the following warning:
Followed by this error:
I narrowed it down to having a +layout.js with
export const ssr = false
, which was needed in svelte 4 as a imported library wants to access the global window variable (which is unavailable on server side rendering).Reproduction
Use svelte 5 @5.0.0-next.120 and add
export const ssr = false
to +layout.js.Logs
No response
System Info
Severity
blocking an upgrade