Play button doesn't work with video.js 6.2.0 and webpack
See original GitHub issueDescription
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:
- Created 6 years ago
- Comments:42 (24 by maintainers)
Top 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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gavfu You can alias
video.js
to use the non-ES6 version.Use something like this in your webpack config:
This is a quick workaround until this issue is resolved.
it’s ok. ESM is short for ES modules or Ecmascript modules. That is the
import
andexport
syntax. CJS is commonjs, i.e., what nodejs uses and what bundlers used to use.