-
Notifications
You must be signed in to change notification settings - Fork 137
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
Error: [vds]: expected <audio> or <video> in default slot. Received: <DIV>. #674
Comments
Hey @simon-olsen! I'm not entirely sure why that error is occurring but we're aware of multiple issues with the React integration at the moment. We're currently working on tooling that will enable us to completely rebuild the React integrations and have proper SSR support. It's mostly a hack right now to get Web Components with Lit to SSR and integrate with React. I recommend holding out a little longer for our new integrations before giving Vidstack a real shot. Sorry your first experience was rough! I can ping you here when they're ready or you can close the issue out and wait for a Twitter/Discord announcement. |
OK thanks for letting me know @mihar-22. Keen to help out with any testing of future releases. |
I'm holding my breath on this too ") |
:) are there any updates ? |
Massive React updates dropping tomorrow - including out of the box Next.js support (SSR + React 18) |
Happy to report the latest release has focused on bringing React 18 and Next.js 13 support! Release notes: #722 |
Been testing out Vidstack with one of my Next.js projects and whether I try to use the
<Video>
or<Hls>
element, I get the following error:Error: [vds]: expected <audio> or <video> in default slot. Received: <DIV>.
I also tried a fresh install of Next.js and I get the same thing.
Steps to reproduce:
yarn create next-app --typescript
index.tsx
to the following content...Other things I've tried:
The HLS stream works, but not without closing the error on the screen first.
Any ideas on how I can solve this?
The text was updated successfully, but these errors were encountered: