react-audio-recorder
react-audio-recorder copied to clipboard
You may need an additional loader to handle the result of these loaders.
trafficstars
Hi, could you please help me with this error. When i try to import the AudioRecorder component i get this error :
./node_modules/react-audio-voice-recorder/dist/react-audio-voice-recorder.es.js 802:16 Module parse failed: Unexpected token (802:16) File was processed with these loaders:
- ./node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | h = J(() => { | v == null && navigator.mediaDevices.getUserMedia({ audio: D ?? !0 | }).then(p => { | I(!0);
NB. I'm trying to implement this example https://stackblitz.com/edit/react-ts-ryj6jz?file=package.json in my project, but i'm stuck with this bug.
Were you able to solve this? Getting a similar problem:
./node_modules/react-audio-voice-recorder/dist/index-1c988149.js 615:33
Module parse failed: Unexpected token (615:33)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| throw Error("corePath should be a string!");
| case 4:
> y = new URL(o, import.meta.url).href;
| _context2.next = 7;
| return W(y, "application/javascript");
@ruipreis +1