shelfio / chrome-aws-lambda-layer

58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
MIT License
637 stars 45 forks source link

Lambda layers publish by shelf no longer working? #46

Closed andreverheij closed 2 years ago

andreverheij commented 2 years ago

Hi Team,

have been using your great lambda Layer to generate PDF's in a Lambda, but now deploying a new lambda with the same code and version of the layer etc and get error "Cannot find module 'chrome-aws-lambda' "

currently deployed Lambda's are working, just not new ones it seems. Are you no longer providing this shared layer?

Regards, Andre

vladholubiev commented 2 years ago

Your code now needs to import @sparticuz/chrome-aws-lambda package instead

See https://github.com/shelfio/chrome-aws-lambda-layer/issues/42

andreverheij commented 2 years ago

ah.. how did I not figure that out, Apologies.

chrisbloe commented 2 years ago

Thanks for this... Please could you add a note to readme.md? I think a lot of people will be caught out by this!

vladholubiev commented 2 years ago

done!

CleanShot 2022-07-28 at 19 20 44@2x