-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
TypeError Astro[this.getAttribute(...)] in Chrome #4286
Comments
I can see the error in Chrome only too. Firefox and Safari are working fine. It looks like it's trying to access |
Thanks for looking into it! |
@sandervspl First, very cool app. Is it possible that you are using one of your |
This is the scenario I'm thinking could cause the bug: <One />
<Something>
<Two client:idle />
</Something> Where |
Thanks! 🙂 The entire page is wrapped with a layout, so there is definitely a slot where // MenuLayout.astro
<html lang={locale || 'en'} class="h-full min-h-full">
<body class="min-h-full">
<main class="bg-base-300 min-h-full">
<div class="h-full layout-container flex flex-col items-center">
<div class="h-full w-full">
<slot name="body" />
</div>
</div>
</main>
</body>
</html> // /pages/.../index.astro
<MenuLayout>
<BTFTrigger client:idle>
...
</BTFTrigger>
</MenuLayout>
Is this what you are thinking of? |
@matthewp I have sent you a request to access the repository. That might make tracking this down a bit easier |
I think I can recreate it in a test, working on that now. |
@sandervspl I think what is happening is that your I think this gives me enough info to recreate in a test. |
Yep, have a breaking test now, thanks! |
Would it make sense to remove all :idle from children of a parent component which has :idle? Or is hydration done from child up to the parent? |
Astro components can't have But, I don't think this bug will take too long to fix, I wrote this part of the code and understand why it's breaking. |
PR: #4288 |
Thanks a lot for the quick work! 💛 |
Fixed! Release should go out later today. |
For those wondering why this broke again, the fix had to be reverted. Another fix is on the way. Thank you @matthewp for the quick turnaround. |
Yes, sorry for not reopening. The fix I made turned out not be a good one. The new fix will allow for hydration directive scripts to be defined lower than the islands that use them, because it seems that we can't control that with slots. I plan on working on this fix tomorrow. |
What version of
astro
are you using?v1.0.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
It's not something I am able to reproduce, sadly. It only happens on Chrome (both Mac and Windows) and only when deployed (to Cloudflare in this case). I have turned off minification on Cloudflare but that didn't fix it.
The error:
Relevant code from source
Link to Minimal Reproducible Example
This is one of the pages where the error occurs
https://wowvalor.app/en/death-knight/blood/mm/
Participation
The text was updated successfully, but these errors were encountered: