videojs-vimeo icon indicating copy to clipboard operation
videojs-vimeo copied to clipboard

Getting master branch to work with webpack

Open wells opened this issue 8 years ago • 1 comments

For anyone else wondering how to get the master branch working with a webpack configuration, it is best to avoid trying to use the dist files.

First, install the master branch so you can enjoy the new Vimeo player:

$ yarn add videojs/videojs-vimeo#master

You'll likely hit a Can't resolve 'videojs-vimeo' error with webpack at this point. To resolve import from the src folder:

import videojs from 'video.js'

import 'videojs-vimeo/src/Vimeo'

Using current master also will avoid any TypeError: Cannot read property 'vdata1478551913479' errors if you dispose() the player, which is a bit of a problem in version 2.0.2.

Please note that I am using version 5.20.4 of video.js. I found that the plugins I want to use with the player are not all ready for version 6.x.x.

wells avatar Dec 28 '17 17:12 wells

Or just install my PR fork.

dinony avatar Jan 08 '18 17:01 dinony