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.

How to use inside a sophisticated react-js app

See original GitHub issue


I’m trying to use videojs-wavesurfer inside a sophisticated react-js app. I have studied and followed these docs:

But I have a hard time integrating videojs-wavesurfer into current code. I’m seeking help here. Can anybody help us figure out how videojs-wavesurfer should be used?

Steps to reproduce

The exact steps taken to do the integration are available here:



I expected to see the videojs-wavesurfer effect while playing audio.


Unfortunately, videojs-wavesurfer has no effect.


"videojs-wavesurfer": "^3.8.0"
video.js": {
      "version": "7.12.3",
"wavesurfer.js": {
      "version": "5.2.0",


Any browser.



Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

Megiddcommented, Feb 6, 2022

Thanks @thijstriemstra 😄

For some reason, this error is thrown before I can do any logs:

Uncaught TypeError: Cannot read properties of undefined (reading ‘params’)

Simple demo

To better understand the error cause, I created this simple demo repository:

Based on this guide:

The simple demo code works fine:


So now, I will have to investigate further to figure out what I’m missing in the sophisticated React app…

thijstriemstracommented, Feb 5, 2022

@Megidd make sure the following code is working correctly, which prints all version numbers for the required javascript dependencies:

// print version information at startup
const version_info = 'Using video.js ' + videojs.VERSION +
    ' with videojs-wavesurfer ' + videojs.getPluginVersion('wavesurfer') +
    ', wavesurfer.js ' + WaveSurfer.VERSION + ' and React ' + React.version;

because it looks like you don’t have wavesurfer.js properly included.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thinking in React
One of the many great parts of React is how it makes you think about apps as you build them. In this document,...
Read more >
React JS Full Course 2022 | Build an App and ... - YouTube
Are you wondering how to become a React developer? Look no further, and get all the info in one video.The first 1000 people...
Read more >
React JS— Architecture tutorial + Features + Folder structure + ...
A complete react js web application architecture. Boilerplate code for creating a new web application using react JS. Our app architecture ...
Read more >
How to Use React.js and Complex JSON Objects | Pluralsight
Create two simple components to get started. First, the Colors component : ; Now create the Home component and render the Colors component...
Read more >
A quick guide to help you understand and create ReactJS apps
The project can be created using create-react-app. Use the following command to create the project. ... first-react-app is the name of the ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found