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!

preguntada hace un año82 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas