amazon-archives/serverless-image-resizing

invalid ELF header Error

Closed this issue · 1 comments

I tried to build the Lambda function in EC2 Instance and in Amazon Linux Docker container. In both cases I get error: "/var/task/node_modules/sharp/build/Release/sharp.node: invalid ELF header" when I execute Lambda function

Hmm, very odd. Are you still seeing this issue? Generally when I've seen that in the past it was a package accidentally built on macOS. Can you return the output of file sharp.node?