You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the video.js version 7.19.2 running on a react project and I was getting the VideoJsPlayerOptions type as: import { VideoJsPlayerOptions } from "video.js"
After updating to the new version 8.10.0 this is not exported anymore. And I couldn't find it anywhere. Can someone help me with that?
I get the error: Module '"video.js"' has no exported member 'VideoJsPlayerOptions'. Did you mean to use 'import VideoJsPlayerOptions from "video.js"' instead?
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
So version 8 exports its own types but they are way more incomplete than the community-made DefinitelyTyped ones for v7? Why not copy/paste the DefinitelyTyped ones and work from there??
Description
Hello!
I had the video.js version 7.19.2 running on a react project and I was getting the VideoJsPlayerOptions type as:
import { VideoJsPlayerOptions } from "video.js"
After updating to the new version 8.10.0 this is not exported anymore. And I couldn't find it anywhere. Can someone help me with that?
I get the error:
Module '"video.js"' has no exported member 'VideoJsPlayerOptions'. Did you mean to use 'import VideoJsPlayerOptions from "video.js"' instead?
Below is the type on previous versions:
Reduced test case
https://codepen.io/gkatsev/pen/GwZegv?editors=1000#0
Steps to reproduce
Errors
No response
What version of Video.js are you using?
8.10.0
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
Chrome
What OS(es) and version(s) does this occur with?
Macos
The text was updated successfully, but these errors were encountered: