Issue Deploying to Amplify Error: ZLIB_1.2.9 not found

0

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!

asked a year ago80 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions