Hi All,
I am trying to deploy my nextjs web app to amplify. It works in localhost and when I tried deploying to vercel. I am using a library called chartjs-node-canvas which has a dependency on "node-canvas" npm library. When I deploy I see this error in my cloudwatch logs
Error: /lib64/libz.so.1: version `ZLIB_1.2.9' not found
Any idea how to fix this? My app still deploys successfully, it does not crash or anything, it just dont not include the functionality that I need from node-canvas libraru.
I have tried many variations of setting the LD_LIBRARY_PATH but I must be doing it wrong.
Thanks!