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

VideoPlayer component error importing type MuxPlayerProps #97

Closed
claygiffin opened this issue Apr 9, 2024 · 1 comment
Closed

VideoPlayer component error importing type MuxPlayerProps #97

claygiffin opened this issue Apr 9, 2024 · 1 comment

Comments

@claygiffin
Copy link

claygiffin commented Apr 9, 2024

When using the <VideoPlayer> component, type VideoPlayerProps is being imported as any instead of extending MuxPlayerProps. I was able to temporarily fix this by editing the index.d.ts file and changing:

import { type MuxPlayerProps } from '@mux/mux-player-react/.';

to

import { type MuxPlayerProps } from '@mux/mux-player-react';

It looks like there is an incorrect trailing /. that is breaking the import.

@stefanoverna
Copy link
Member

Thank you! Fixed in v6.0.1!

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

2 participants