react-media-recorder
react-media-recorder copied to clipboard
Blob is not defined
error - ReferenceError: Blob is not defined
Similar problem on Next.js follow this
import dynamic from "next/dynamic";
const DynamicComponent = dynamic(
() => import("react-media-recorder").then((mod) => mod.ReactMediaRecorder),
{
ssr: false,
}
);
hi @kalib-code,
I'm still getting this error in Nextjs
Same thing
Instead of dynamically importing the RecorderComponent or the hook, try dynamically importing the parent component of the recorder. It worked for me.
@seebham Can you please share your solution? I'm trying to load useReactMediaRecorder
in Next.js. Thank you!!