Hello, I've created a component called BlurData which looks like this:
import getBase64 from '@/utils/getLocalBase64';
import Image from 'next/image';
type BlurDataProps = {
src: string;
};
export default async function BlurData({ src }: BlurDataProps) {
const blurDataUrl = await getBase64(src);
return (
<Image
src={src}
alt="Generated icon"
height="250"
width="250"
priority={true}
placeholder="blur"
blurDataURL={blurDataUrl}
/>
);
}```
The problem is when I try to use it in my client component called `GenerateIconForm` like the following:
```js
<BlurData src={generatedIcon?.imageUrl ?? ''} />
I get an error:
./node_modules/detect-libc/lib/detect-libc.js:6:1
Module not found: Can't resolve 'child_process'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/sharp/lib/utility.js
./node_modules/sharp/lib/index.js
./node_modules/plaiceholder/dist/plaiceholder.esm.js
./src/utils/getLocalBase64.ts
./src/app/components/BlurData.tsx
./src/app/components/GenerateIconForm.tsx
Is there something that I am missing?