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!

質問済み 1年前82ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ