Skip to content

Error: Worker is not defined when using the useReactMediaRecorder hook #144

@curvejumpinc

Description

@curvejumpinc

import { useReactMediaRecorder } from 'react-media-recorder';

// React Media Recorder hook
const { status, startRecording, stopRecording, mediaBlobUrl } =
useReactMediaRecorder({
audio: true,
mediaRecorderOptions: {
audioBitsPerSecond: 16000,
bitsPerSecond: 16000,
},
onStop: onAudioResponseRecordingDone,
});

This compiles fine in typescript and the code also works fine but I'd like to avoid this "Worker not defined" error in Chrome if possible. I am using next.js 14.2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions