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
TypeError: Class constructor Plugin cannot be invoked without 'new' means the plugin class has been transpiled and
that won't work, it has to be a native ES6 class. please add support
The text was updated successfully, but these errors were encountered:
So i had the same problem with in a vite + vue3 project migrating from VideoJS 7 to VideoJS 8. It seems that importing via the default import does not work but importing the src and transpile it with your vite build does.
So instead of:
import'videojs-hls-quality-selector'
do this and import from source
import'videojs-hls-quality-selector/src/plugin'
then register the plugin options when player is ready
TypeError: Class constructor Plugin cannot be invoked without 'new' means the plugin class has been transpiled and
that won't work, it has to be a native ES6 class. please add support
The text was updated successfully, but these errors were encountered: