-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hydration regression between 224 and 225 #12913
Comments
It happens because I have this config! compilerOptions: {
preserveWhitespace: true,
} Removing it fixes the hydration issue |
This is likely due to the changes in #12891. |
I am not able to reproduce this. Please provide a reproduction repository. Is one of you by any chance using some kind of HTML minifier in SvelteKit's |
Yes, we are using the |
I don't have a custom handle hook, I just used to have the |
@GauBen any luck on that repro? |
Yep, just did! It's on https://github.com/GauBen/gautier.dev/tree/repro-12913 gh clone https://github.com/GauBen/gautier.dev
cd gautier.dev
git switch repro-12913
yarn
yarn dev
# -> http://localhost:5173/ |
Thanks! Whittled it down to this — investigating <svelte:options preserveWhitespace />
{#each 'abc' as l}
<div>{l}</div>
{/each} |
Describe the bug
Hey! I found a regression between two Svelte 5 previews.
The following code produces an SSR hydration error in Svelte 5-225:
Stacktrace
Files
compiled Card.svelte in 224
This has something to do with #12891
Reproduction
I hope the details I provided are enough to fix it, otherwise I will try to provide a complete repro
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: