Open underGhost opened 1 month ago
Can you show an example of how you're trying to use the hook?
@mihar-22 I'm not using the hook at all. I'm just trying to render the component using react and it's failing with the above errors.
@mihar-22 Yea it's weird because I don't get it when using the plyr layout, or creating a custom layout, only when using the default layout.
Current Behavior:
Attempting to use the React vidStack (1.12.11) from the installation docs and running into an error:
Was able to pull this package down and trace it to these lines:
https://github.com/vidstack/player/blob/main/packages/react/src/hooks/use-media-state.ts#L37 and https://github.com/vidstack/player/blob/main/packages/react/src/hooks/use-media-state.ts#L57
Commenting them out seems to allow the video player to render.
Expected Behavior:
Video player should render
Steps To Reproduce:
Follow React -> Video -> Default Layout in the docs
Reproduction Link: How to create a repro?
Environment:
Anything Else?