diff --git a/src/components/Editor/AudioUploader/AudioUploader.tsx b/src/components/Editor/AudioUploader/AudioUploader.tsx index 22db8e7f..487c0a59 100644 --- a/src/components/Editor/AudioUploader/AudioUploader.tsx +++ b/src/components/Editor/AudioUploader/AudioUploader.tsx @@ -7,9 +7,10 @@ import { composeMediaItems } from '../../../utils/composeMediaItems' import { AudioPlayer } from '../../Article/AudioPlayer' import { DropArea } from '../../_shared/DropArea' +import { Buffer } from 'node:buffer' import styles from './AudioUploader.module.scss' -window.Buffer = (await import('node:buffer')).Buffer +window.Buffer = Buffer type Props = { class?: string