react-wavesurfer
react-wavesurfer copied to clipboard
Failed to minify code.
Hi, every time I try to build my project with the command npm run build, I get the following error:
Failed to minify the code from this file: ./node_modules/react-wavesurfer/src/plugins/regions.js:34
Any help would be much appreciated.
For anyone that is interested, I solved this issue by changing the import statement require('react-wavesurfer/src/plugins/regions').default; to require('react-wavesurfer/lib/plugins/regions').default;