Intento usar el procesamiento de imágenes de Sharp en mi aplicación Create React. pero me manda un error
este es mi codigo
import sharp from 'sharp'; const buffer = await sharp(req.file.buffer) .resize({ width: 250, height: 250 }) .extend({ top: 10, bottom: 10, left: 10, right: 10, background: '#d7d8de' }) .png()
Editar: estoy usando Node.js versión 12.18.0