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.

Getting error Uncaught TypeError: Cannot read properties of null (reading 'remove') when I create cursor plugin instance?

See original GitHub issue

Version ^6.2.0

 waveform.current = WaveSurfer.create({
       container: "#waveform",
       waveColor: "#00AFCC",
       barGap: 2,
       barWidth: 4,
       barRadius: 3,
       cursorWidth: 2,
       cursorColor: "#567FFF",
       scrollParent: true,
       // Add the regions plugin.
       // More info here https://wavesurfer-js.org/plugins/regions.html
       plugins: [
            WaveformCursorPlugin.create(),
            WaveformMarkersPlugin.create({
            container: "#wave-timeline",
                time: 6,
                label: 'Start',
                color: 'red',
            }),

           WaveformTimelinePlugin.create({
               container: "#wave-timeline",
               height:40, 
               notchPercentHeight: 70,
               primaryFontColor: "rgba(255, 255, 255, 0.1)",
               secondaryFontColor:"rgba(255, 255, 255, 0.3)",
               primaryColor: "rgba(255, 255, 255, 0.3)",
               secondaryColor: "rgba(255, 255, 255, 0.3)",
               unlabeledNotchColor: "rgba(255, 255, 255, 0.1)",
               fontSize:10,
               labelPadding:4,
               formatTimeCallback: formatTimeCallback,
               primaryLabelInterval: primaryLabelInterval,
               secondaryLabelInterval: secondaryLabelInterval
           })
   ]
   
     });

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jaylenpattersoncommented, Aug 7, 2022

I was able to use the plugin no problem with wavesurfer-react! Thank you so much.

0reactions
thijstriemstracommented, Oct 21, 2022

we don’t provide support for React; take a look at https://www.npmjs.com/package/wavesurfer-react instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property of null - iDiallo
All this means is that you are trying to access a property of an object that is undefined. These usually happens when we...
Read more >
How to fix Uncaught TypeError: Cannot read properties of null ...
I'm doing an ecommerce as a project and I'm trying to finish up the function to delete items from the cart. I think...
Read more >
uncaught typeerror: cannot read properties of null ... - You.com
I am getting an error: Uncaught TypeError: Cannot read properties of null (reading 'querySelector'). At this step the tags input is showing NULL....
Read more >
Cannot read properties of null (reading 'getStart') on Delete
Press Delete Or Suppr key. Result : The editor control disappears and the following error occurs : plugin.min.js:4 Uncaught TypeError: Cannot ...
Read more >
FilePond Documentation - PQINA
The FilePond core module exposes the following properties. Property, Default, Description. element, null, The root element of the FilePond instance. This ...
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