serverless-localstack icon indicating copy to clipboard operation
serverless-localstack copied to clipboard

Lambda execution does not work with package individually: true

Open maturiaditya opened this issue 4 years ago • 1 comments
trafficstars

Lambda execution does not work with package (individually: true). Each lambda is created with it's own folder and when I execute a lambda using localstack url, it fails with "errorMessage" : "Error: Cannot find module ....". I am not sure if I am missing any config here.

maturiaditya avatar Apr 23 '21 06:04 maturiaditya

Cannot find module

Show us the full log. It could just be the same error I got. My solution was simply to npm update and use the latest webpack 5. Check what your packaged zip look like.

ThomasLabstep avatar May 14 '21 18:05 ThomasLabstep

Closing the ticket due to inactivity and a proposed solution. Please reach out if you still encounter issues and provide more details, and logs.

steffyP avatar Oct 13 '23 15:10 steffyP