sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Module version mismatch

Open JakubMatejka opened this issue 9 years ago • 3 comments

I can't get the Sharp work on Lambda. I use Docker image for the deployment to AWS (including yarn install) which is based on official Amazon image (https://hub.docker.com/r/library/amazonlinux/) but my Lambda function fails on this error: Module version mismatch. Expected 46, got 51. which can be traced to sharp/lib/constructor.js:8:15.

Problem could be in fact that Lambda environment is based on Amazon AMI 2016.03 but that image can't be used anymore (it cannot be even run in EC2 if I would proceed according to your guide), there is only version 2016.09.

Would you have any idea how I could solve the problem?

JakubMatejka avatar Mar 23 '17 13:03 JakubMatejka

Hello, did you see #468 and #733?

lovell avatar Mar 23 '17 14:03 lovell

Hi, oh my, I missed them. I looked mainly to issues relating lambda. Thank you very much for a fast hint, I am going to try and let you know if it helps.

JakubMatejka avatar Mar 23 '17 14:03 JakubMatejka

I haven't found Node 4.3 which is used in aws but it looks that it is ok with 4.8. Thanks a lot.

JakubMatejka avatar Mar 23 '17 20:03 JakubMatejka