You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: