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!

demandé il y a un an82 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions