Images inside public/images folder working well in local environment but it is not working on server after deploying. On image failed requests I could see the below error:
"IPX Error: Error:
Something went wrong installing the “sharp”
module libvips - cpp.so .42: cannot open shared object file: No such file or directory
Possible solutions:
Install with verbose logging and look for errors: “npm install --ignore-scripts=false --foreground-scripts --verbose sharp”\
Install for the current linux - x64 runtime: “npm install --platform=linux --arch=x64 sharp”\
@danieljindev Try googling for ipx error installing sharp, you may find a solution in the results, as it seems to be a common issue not specific to Netlify.
Yes, I am working with Next.js. The runtime is Node.js, and we are using Node.js version 14 or higher as specified in our package.json file. I have chose 16.x for now.
@danieljindev, you’re using an outdated Next.js version along with Next Runtime v4 which we don’t actively provide support for. Please upgrade to Next.js 13.5+ along with Runtime v5.