-
-
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
🐛 BUG: client:only
errors @ React, Vue, & Solid
#3362
Comments
Ah dang, sorry this still isn't fixed! We'll take a look at this again. cc @bholmesdev who authored #3337 |
I had the same issue with React 17 and both |
I have this error for client:* in solid-js. astro in dev mode is not able to find the component by path but works okay when built. |
* wip: fix nested islands * fix: improve hydration for dynamic content * chore: fix bundle-size script for new files * chore: allow-list client:* directive files * fix(#3362): fix client:only behavior for React, Vue, Solid * test: add client-only e2e test * chore: update lockfile * test: fix e2e tests * test: add framework nesting e2e tests * Update packages/astro/src/runtime/client/events.ts Co-authored-by: Matthew Phillips <[email protected]> * chore: add changeset * fix(preact): ignore hydrate roots * chore: remove `ssr` check in integrations * Revert "chore: remove `ssr` check in integrations" This reverts commit ba27eaa. * chore: add changeset Co-authored-by: Matthew Phillips <[email protected]>
Forwarding the updated repro from the Community Call (dependecy bump): Fixed:
|
Thanks for the new reproduction. |
Looks like this is fixed in the latest beta release, Stackblitz demo 🥳 We've made some huge strides the last few weeks in component hydration, both in performance improvements and in adding support for nested slots. Closing this as fixed but please open a fresh issue run into any related bugs! |
* wip: fix nested islands * fix: improve hydration for dynamic content * chore: fix bundle-size script for new files * chore: allow-list client:* directive files * fix(withastro#3362): fix client:only behavior for React, Vue, Solid * test: add client-only e2e test * chore: update lockfile * test: fix e2e tests * test: add framework nesting e2e tests * Update packages/astro/src/runtime/client/events.ts Co-authored-by: Matthew Phillips <[email protected]> * chore: add changeset * fix(preact): ignore hydrate roots * chore: remove `ssr` check in integrations * Revert "chore: remove `ssr` check in integrations" This reverts commit ba27eaa. * chore: add changeset Co-authored-by: Matthew Phillips <[email protected]>
What version of
astro
are you using?1.0.0-beta.28
Are you using an SSR adapter? If so, which one?
No
What package manager are you using?
Yarn
What operating system are you using?
Windows
Describe the Bug
Steps to reproduce:
Kitchen Sink (Multiple Frameworks)
template.client:visible
toclient:only="..."
@src/pages/index.astro
.React Errors
Vue Errors
Solid Errors
Link to Minimal Reproducible Example
https://codesandbox.io/s/astro-client-directive-issues-82bu8s?file=/src/pages/index.astro:769-1214
Participation
The text was updated successfully, but these errors were encountered: