react-audio-recorder icon indicating copy to clipboard operation
react-audio-recorder copied to clipboard

You may need an additional loader to handle the result of these loaders.

Open iliassanati opened this issue 1 year ago • 2 comments
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.

iliassanati avatar Jan 26 '24 10:01 iliassanati

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 avatar Mar 19 '24 08:03 ruipreis

@ruipreis +1

Tejaswgupta avatar Apr 20 '24 08:04 Tejaswgupta