The videojs-errors plugin is not registered correctly when using with videojs 6 and npm.
The reason is the package json: "video.js": "^5.19.2".
This leads npm to download an own videojs dependency for this plugin that is be used.
So videojs 5 gets imported too and videojs 6 doesn't know the errors plugin.
Steps to reproduce
just try:
import videojs from 'video.js';
import errors from 'videojs-errors';
videojs.getPlugin('errors') //undefined
Results
Expected
plugin works properly.
Actual
videojs-errors is not registered as a plugin and videojs 5 get additionally added to bundle.
Description
The videojs-errors plugin is not registered correctly when using with videojs 6 and npm. The reason is the package json:
"video.js": "^5.19.2"
.This leads npm to download an own videojs dependency for this plugin that is be used. So videojs 5 gets imported too and videojs 6 doesn't know the errors plugin.
Steps to reproduce
just try:
Results
Expected
plugin works properly.
Actual
videojs-errors is not registered as a plugin and videojs 5 get additionally added to bundle.
versions
videojs: 6.8.0 videojs-error: 3.1.0