You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
Issue reproduced by initializing a fresh SvelteKit project and copy/pasting README example for JSON-LD. See the pnpm-lock.yaml for the exact resource versions used to reproduce, copied below for convenience:
Hmmm... This seems to be a bug in Svelte hydration.
It seems that an issue has already been created, but it has not been resolved😅 sveltejs/svelte#6463
I added the following code to index.svelte and it solved the problem, but hydrate will not work...
Ah, I'd've found it but I only searched kit and not svelte. I saw in the Kit changelog there were some changes recently related to hydration so it seems this is a non-issue. Please close at your leisure. Thank you!
This is a bug that occurs when rendering against <head>, so it can be worked around by rendering against <body>.
This feature was added in svelte-meta-tags v2.4.0.
Describe the bug
Writing JSON-LD to the page results in duplicative output.
Reproduction
git clone https://github.com/vhscom/repro-duplicative-jsonld-meta.git
to copy minimal test casepnpm i && pnpm dev -- --open
to open the error pageAdditional context
Issue reproduced by initializing a fresh SvelteKit project and copy/pasting README example for JSON-LD. See the
pnpm-lock.yaml
for the exact resource versions used to reproduce, copied below for convenience:'@sveltejs/kit': [email protected]
svelte-meta-tags: [email protected][email protected]
Aside
JSON-LD gets moved to page
head
whereas I'd expect it to output where theJsonLd
tag is placed.The text was updated successfully, but these errors were encountered: