Skip to content
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

Rendering an Astro container that contains a React component with a client:load directive errors #11407

Closed
1 task
ezhangy opened this issue Jul 3, 2024 · 0 comments · Fixed by #11486
Closed
1 task
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)

Comments

@ezhangy
Copy link

ezhangy commented Jul 3, 2024

Astro Info

Astro                    v4.11.3
Node                     v20.12.0
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When I try to use the container API to test an Astro component containing a React component with a client:load directive, I get the following error:
Error: invalid hydration directive "client:load". Supported hydration methods:.

The error can be seen by running npm run test in the stackblitz example.

What's the expected result?

I expect the vitest test to run without throwing the error.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-39gesu?file=src%2Ftest%2Fexample.test.tsx

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jul 3, 2024
@ematipico ematipico added - P3: minor bug An edge case that only affects very specific usage (priority) and removed needs triage Issue needs to be triaged labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority)
Projects
None yet
2 participants