-
-
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
Conditional elements inside <svelte:head> throw console errors on hydration. #1406
Comments
FYI @morleytatro we ran into the same issue with an |
Here's another repro: Simply install the modules and fire it up with Seems like this might be connected to either or both of these: |
Yes, I raised #475 for this exact same reason, as I'm trying to build a favicon plugin which dynamically generates and includes required assets, and as it stands, it can't work. An important thing to note here is that the solution by @ludwigschubert doesn't work, under sapper, at least. Any each I try to write, no matter how far down I try to bury it in child components, breaks :) |
It was fixed in 3.4.4 and above. |
@Panya Confirmed. I'll close it. |
I'm still not able to use |
At least two types of tags are throwing errors when included conditionally: link and meta. This only seems to be an issue when using Sapper. With Svelte alone and no server-side rendering, the problem doesn't occur. See this repo and specifically lines 2-4 of the Layout.html file. The conditional is the only thing added to the Sapper template. The error thrown is:
The text was updated successfully, but these errors were encountered: