Wykerd / react-av

Fully-featured, headless, hooks-based, and declarative media player framework for React.
https://react-av.wykerd.dev
MIT License
12 stars 2 forks source link

Unhandled Runtime Error #3

Open xingsheng-lim opened 4 days ago

xingsheng-lim commented 4 days ago

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 (

); }

xingsheng-lim commented 4 days ago

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.