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!

질문됨 일 년 전82회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠