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

Unhandled Runtime Error #3

Open
xingsheng-lim opened this issue Nov 21, 2024 · 1 comment
Open

Unhandled Runtime Error #3

xingsheng-lim opened this issue Nov 21, 2024 · 1 comment

Comments

@xingsheng-lim
Copy link

Screenshot 2024-11-21 210805
I'm using nextjs 15 and react 19, and it keeps giving this error, which I can't fix
My code:

"use client";

import * as Media from "@react-av/core";
import { useEffect, useState } from "react";

export default function Demo() {
const [mounted, setMounted] = useState(false);

useEffect(() => {
setMounted(true);
}, []);

if (!mounted) return

Loading...

;

return (


<Media.Root>
<Media.Container>
<Media.Video src="/videos/sample.mp4" />
</Media.Container>
<Media.Viewport></Media.Viewport>
</Media.Root>

);
}

@xingsheng-lim
Copy link
Author

In fact, I feel that it is not a problem with this lib, but a compatibility issue caused by the recoil lib used in the lib, especially when using react 19 or turbo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant