wavesurfer.js icon indicating copy to clipboard operation
wavesurfer.js copied to clipboard

Cursor Plugin - Uncaught TypeError: Cannot read properties of undefined (reading 'create')

Open andrheapaltao opened this issue 3 years ago • 0 comments

Wavesurfer.js version(s):

6.2.0 (2022-05-16)

Browser and operating system version(s):

Win 10

  • Edge Version 105.0.1343.27 (Official build) (64-bit)
  • Chrome Version 105.0.5195.102 (Official Build) (64-bit)

Code needed to reproduce the issue:

I cannot re-create the code in codepen because of the loading of external audio file. But here's the code I used: https://codepen.io/rhea-paltao/pen/rNvLBpV image

Use behaviour needed to reproduce the issue:

Using a pure JS project, CursorPlugin is the only one with the Uncaught TypeError: Cannot read properties of undefined (reading 'create') error. Wavesurfer.regions.js can be implemented without much of a problem. Only the cursor plugin. This is the file that I used for the Cursor Plugin: https://unpkg.com/[email protected]/dist/plugin/wavesurfer.cursor.js

Additional Info:

Please let me know if the file I used is correct or not because in the API documentation the file is not compatible with a PureJS project. I get an error: image

andrheapaltao avatar Sep 10 '22 17:09 andrheapaltao