Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iliassanati opened this issue Jan 26, 2024 · 2 comments
Assignees

Comments

@iliassanati
Copy link

iliassanati commented Jan 26, 2024

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.

@ruipreis
Copy link

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");

@Tejaswgupta
Copy link

@ruipreis +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants