Peer5 / videojs-contrib-hls.js

HLS library for video.js using Dailymotion's hls.js tech
Apache License 2.0
108 stars 55 forks source link

gulp/browserify: Cannot find module 'videojs-contrib-hls.js' #20

Closed ranuser99 closed 7 years ago

ranuser99 commented 7 years ago

Error when creating a bundle using gulp and browserify:

Error: Cannot find module 'videojs-contrib-hls.js'

Any clues on what may be happening here? I create a bundle of all 3rd party packages using a line like this in gulp.js:

extLibPackageNames.forEach(function (name) { browserify.require(name); });

All other packages work, including react, videojs, videojs-contrib-media-sources, hls.js, etc. The only problem is videojs-contrib-hls.js

  1. I have removed and re-installed the package.
  2. Confirmed node_path
  3. Cleared node-cache

Any suggestions?

Thank you!

ranuser99 commented 7 years ago

To update, I worked around the issue by bringing migrating the code into our project.