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.

Upgrading to version 3.4.2 resulted in react build using webpack to throw `videojs is not defined`

See original GitHub issue

Description

Upgrading to version 3.4.2 resulted in react build using webpack to throw videojs is not defined

Steps to reproduce

Use version 3.4.2 in react app then build just like in the documentation (https://github.com/collab-project/videojs-record/wiki/Webpack#webpack-config)

Results

Expected

Succesfully build

Actual

Throws an error when using react app

Error output

animation-display.js:34 Uncaught (in promise) ReferenceError: videojs is not defined at eval (animation-display.js:34) at Object../src/js/controls/animation-display.js (videojs.record.js?3966:147) at __webpack_require__ (videojs.record.js?3966:37) at eval (videojs.record.js:8) at Object../src/js/videojs.record.js (videojs.record.js?3966:339) at __webpack_require__ (videojs.record.js?3966:37) at eval (videojs.record.scss:1) at Object.0 (videojs.record.js?3966:350) at __webpack_require__ (videojs.record.js?3966:37) at eval (videojs.record.js?3966:101) at eval (videojs.record.js?3966:104) at webpackUniversalModuleDefinition (videojs.record.js?3966:10) at eval (videojs.record.js?3966:17)....

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

videojs-record version: 3.4.2 video.js version: 7.4.1

browsers

Chrome and Firefox tested

OSes

OSX

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
pwobcommented, Feb 27, 2019

Yes thanks so much and for this great module! Will read codes so I can help sometime.

0reactions
thijstriemstracommented, Mar 4, 2019

Sigh… what is your video.js config? And can you reproduce it on https://collab-project.github.io/videojs-record/examples/video-only.html? if not, there’s not much I can do, I cannot help with React-related stuff.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack importing video.js returns an empty object
Thank you for your answer the issue that I face when doing import videojs from "video.js", was that it says cannot assign vttjs...
Read more >
When using react.js webpack-dev-server does not bundle
js, the page automatically bundles the JS file and reloads the project. You can create a project from a scratch and assemble your...
Read more >
CVE - Search Results - MITRE
The mission of the CVE® Program is to identify, define, and catalog publicly disclosed cybersecurity vulnerabilities.
Read more >
unhandled promise rejection: notallowederror: the request is ...
The audio is muted or its volume is set to 0;; The user has interacted with the site (by clicking, tapping, pressing keys,...
Read more >
Timeline – WebKit
Reviewed by Chris Fleizach. Source/WebCore: This patch adds accessibility support into multiple fields time input. UI by setting "role" HTML attribute of ...
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