question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Play button doesn't work with video.js 6.2.0 and webpack

See original GitHub issue

Description

Playing the recorded video doesn’t work with video.js 6.0.0 ~6.2.0 When you record a video and then press the play button noting happens.

Steps to reproduce

Install video.js ~6.2.0

Results

Expected

Should play the video.

Error output

Uncaught TypeError: videojs.getComponent is not a function

Additional Information

versions

videojs

what version of videojs does this occur with? video.js 6.2.0 videojs-record 1.6.1

browsers

what browser are affected? Tested in Firefox and Chrome

OSes

what platforms (operating systems and devices) are affected? Linux

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:42 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
alsarcommented, Sep 18, 2017

@gavfu You can alias video.js to use the non-ES6 version.

Use something like this in your webpack config:

  resolve: {
    alias: {
      'video.js': path.resolve(__dirname, '../../node_modules/video.js/dist/video.js')
    }
  }

This is a quick workaround until this issue is resolved.

1reaction
gkatsevcommented, Jul 4, 2017

it’s ok. ESM is short for ES modules or Ecmascript modules. That is the import and export syntax. CJS is commonjs, i.e., what nodejs uses and what bundlers used to use.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser not displaying MP4 @webpack-dev-server @React.js ...
I installed file loader as a dev dependency and added your code to my webpack.config.js. The mp4 acts as expected. – Ziggy. Jan...
Read more >
Troubleshooting - Video.js
A guide to troubleshooting common issues with Video.js.
Read more >
Livery Video Web Player
Bug Fixes · “DOMException: The play() request was interrupted by a call to pause()” (#97) (61ea869) · “JSON does not support values of...
Read more >
https://www.ibccrim.org.br/app/webroot/js/plugins/...
([#6200](https://github.com/videojs/video.js/issues/6200)) ... (2019-04-12) ### Bug Fixes * always show the mute button by default in responsive mode ...
Read more >
Changelog - Cypress Documentation
Fixed an issue where the Cypress migration wizard would fail to run in global mode ... Installing Cypress on your system now requires...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found