-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Lit Integration with client:load throws hydration exception #6670
Comments
This looks like a Lit bug to me, but I am not certain. There is a comment node output by Lit that it expects to have a sibling element adjacent to, but there isn't one. I wonder if that comment should be before the |
This is def wrong. We recently did a release of Lit + lit-labs SSR. I see that there is a mismatch betwen |
Found the offending PR: We have intention to split out lit's hydration code into its own module so that this is caught more automatically. Sorry about that |
@e111077 thanks, does this mean that there's currently a bug in ssr and upgrading won't help? |
It's more of an issue of mismatching versions as @e111077 originally pointed out.
We're in a bit of an unfortunate situation where the hydration code is part of the core |
@augustjk Still not 100% clear to me. The question is, can we (Astro) fix this right now? Can we upgrade to lit 2.7.0 and ssr 3.1.0 and the issue will be resolved? |
but waiting for next astro release to contain a fix for latest lit withastro/astro#6670 withastro/astro#6681
but waiting for next astro release to contain a fix for latest lit withastro/astro#6670 withastro/astro#6681
What version of
astro
are you using?2.1.7
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
I am trying to integrate Lit in Astro, but doing so results in a uncaught exception in a promise during hydration:
Removing the
client:load
directive in thepages/index.astro
file removes that error, but of course also does not load any JavascriptLink to Minimal Reproducible Example
https://codesandbox.io/p/sandbox/elated-wave-niqcur?on=codesandbox&file=%2Fastro.config.mjs&selection=%5B%7B%22endColumn%22%3A12%2C%22endLineNumber%22%3A8%2C%22startColumn%22%3A12%2C%22startLineNumber%22%3A8%7D%5D
Participation
The text was updated successfully, but these errors were encountered: