Uncaught ReferenceError: WaveSurfer is not defined #2942
Replies: 4 comments 21 replies
-
It sounds like you forgot to import WaveSurfer? |
Beta Was this translation helpful? Give feedback.
-
Sorry; I should have said that I had already imported WaveSurfer: import WaveSurfer from 'wavesurfer.js'; const ws = WaveSurfer.create({
Below is the error: |
Beta Was this translation helpful? Give feedback.
-
Sorry I'm going to seem like a fool here but I'm using babel and that's about it. electron-builder is doing the build to create the electron app. |
Beta Was this translation helpful? Give feedback.
-
right... this makes me feel uneasy. From now on, I guess I should use your updated script tag, right? I'm just worried about future updates breaking the plugin. What's the best way to keep up to date with your new releases? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I'm trying to run WaveSurfer in an Electron project. I'm using the following:
Node v18.16
Electron v25.2
WaveSurfer v7.0.0-beta.11
When I try to use the annotation plugin (I've installed wave surfer via yarn), I get the following error when I import:
import RegionsPlugin from 'wavesurfer.js/dist/plugins/regions.js';
Uncaught ReferenceError: WaveSurfer is not defined
This comes from the minified js from the regions plugin. Anyone have any idea what's happening here?
I get the same error when using nupkg
Beta Was this translation helpful? Give feedback.
All reactions