Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

hydration_mismatch on Svelte app when head and body are empty

$
0
0

I'm getting a hydration_mismatch issue on my Svelte app even when the body and head are completely empty. I attempted to narrow down when the warning occurs but it only seems to go away when both my head and body tags are removed from page.svelte. Does anyone have any idea where the issue may be occurring?

enter image description here

I put a breakpoint to pause on uncaught and caught exceptions and this is where it stops at:

enter image description here

app.html:

<!doctype html><head>          %sveltekit.head%</head><body data-sveltekit-preload-data="hover"><div style="display: contents">%sveltekit.body%</div></body>

layout.svelte:

<script>   import '../app.css';   let { children } = $props();</script>{@render children()}

page.svelte:

<head></head><body></body>

Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>