I had the same problem because I added "sharp" module to my project.
If you added "sharp" module to your project, you can't use it in client component. So, you can create an URL on backend and use sharp to handle and return the image edited