I use sharp library for my image processing in the node js script which in turn is running my test cases using jest-image-snapshot.
I have got this error
/lib64/libz.so.1: version `ZLIB_1.2.9' not found
Found similar issue on NodeJS app on OpenShift: /lib64/libz.so.1: version `ZLIB_1.2.9' not found and tried preloading the dependency.
But then, I have got error on preloading as well
ERROR: ld.so: object '/opt/app-root/src/node_modules/sharp/vendor/lib/libz.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Please help to resolve this..
I have been trying this in my Windows OS
NOTE: The same script works fine in a mac OS