'Vercel - `ZLIB_1.2.9' not found
I am trying to use canvas in a server less function on Vercel, but am running into an error I don't know how to get around:
Error: /lib64/libz.so.1: version
ZLIB_1.2.9' not found (required by /var/task/api/node_modules/canvas/build/Release/libpng16.so.16)`
I have this in my package.json, but it appears to installed zlib 1.2.7:
"scripts": {
"vercel-build": "yum install libuuid-devel libmount-devel zlib && cp /lib64/{libuuid,libmount,libblkid,libz}.so.1 node_modules/canvas/build/Release/"
},
As I see this in the build log zlib-1.2.7-18.amzn2.x86_64 already installed and latest version
How can I install 1.2.9 instead?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|