I’m trying to use sharp in the browser, mainly I want to resize images. But after importing it in the component:
import sharp from 'sharp';
I get this error in the browser console.
Uncaught Error: cannot load native .node modules on the client(…)
I went to the index to look how it is loading sharp and its loading a .node file.
Please any help is really appreciated I have been struggling with this for days.