We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I'm trying to switch over to VideoJS 8.3 at my Angular application, but sadly I cannot load the player anymore:
import videojs from 'video.js';
-> This seems to be working.
This also does not work anymore:
public player!: videojs.Player;
Why can't I access the player anymore? This currently results in the following error:
TS2724: 'videojs' has no exported member named 'Player'. Did you mean 'players'?
The text was updated successfully, but these errors were encountered:
Same here
Sorry, something went wrong.
Me too
I was facing the same issue. However if you provide additional import as follows, it works
import Player from "video.js/dist/types/player";
Hello friends, I don't understand why the thumbs down to @nikhilbhalwankar , he is correct with: import Player from "video.js/dist/types/player";
Just missed commenting that the variable has to stop referencing from video.js, so it would be: public player!: Player;
public player!: Player;
Happy coding! 👻
No branches or pull requests
Hello,
I'm trying to switch over to VideoJS 8.3 at my Angular application, but sadly I cannot load the player anymore:
import videojs from 'video.js';
-> This seems to be working.
This also does not work anymore:
public player!: videojs.Player;
Why can't I access the player anymore? This currently results in the following error:
TS2724: 'videojs' has no exported member named 'Player'. Did you mean 'players'?
The text was updated successfully, but these errors were encountered: