Helo!
First sorry for my english and thanks for making this tool available.
I use the wavesurfer.js in my vue project. This is instaled with npm.
The wavesurfer is work just with a little problem in load the waveform for some audios.
But my realy probelm is with CursorPlugin.
On add import CursorPlugin from 'wavesurfer.js/src/plugin/cursor.js' in my component, return this:
Failed to compile.
./node_modules/wavesurfer.js/src/plugin/cursor.js 71:18
Module parse failed: Unexpected token (71:18)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| * @type {CursorPluginParams}
| */defaultParams = {| hideOnBlur: true,
| width: '1px',
I tried add import CursorPlugin from 'wavesurfer.cursor.js' but not exist wavesurfer.cursor in node_modules
Exists other way to use CursorPlugin in my vue.js project?
Thanks!
3.2.0
Ubuntu 18.10 and Crhome 78.0.3904.87
I'm not allowed to publish
import CursorPlugin from 'wavesurfer.js/src/plugin/cursor.js' in vue.js component
Import it from dist instead:
import CursorPlugin from 'wavesurfer.js/dist/plugin/wavesurfer.cursor.js'
Importe-o de dist em vez disso:
import CursorPlugin from 'wavesurfer.js/dist/plugin/wavesurfer.cursor.js'
Thanks!
It worked
Most helpful comment
Import it from dist instead: