Closed AleksandarGT closed 1 year ago
Currently the only way is to remove the duplicated canvas which may need some efforts. Thanks for suggesting to add chartjs.
Would do some more round of works here and target to release in next release. Thank you~
A new maintenance release is available through AWS Serverless Application Repository. Please deploy and try. Thank you.
Hello I have been trying to use chartjs within a lambda function, therefore I used chartjs node canvas to create graphs in a node environment. I also use Amplify to manage my lambdas.
Lambda throws error
/var/task/node_modules/canvas/build/Release/canvas.node: invalid ELF header
on execution.I tried using your lambda layer and it successed with importing canvas to my code and running it, however the moment i import chartjs node canvas the lambda throws invalid ELF header error. Is it possible that since the chartjs library depends on node-canvas, npm installs it and it overrides your lambda layer which has the correct binaries?