juanjoDiaz / serverless-plugin-warmup

Keep your lambdas warm during winter. ♨
MIT License
1.11k stars 113 forks source link

Plugin creates a empty lambda with no code #354

Open nahimdhaney opened 2 months ago

nahimdhaney commented 2 months ago
image

The Plugin is creating 2 lambdas, the first one is empty (the picture) and it has linked an event bridge. I'm using serverless-webpack. (1)

The plugin creates another lambda that contains code but is not linked to anything. (number 2)

image

Of course, the logs of the warmer lambda (1) said:

"Error: Cannot find module 'handler'\nRequire stack:\n- /var/runtime/index.mjs"

any help?

skirang71 commented 1 week ago

I am facing the same issue as well. Any update?

juanjoDiaz commented 1 week ago

Hi guys,

Can you share the versions of serverless, serverless-plugin-warmup and serverless-webpack that you are using.

This kind of error is typically caused by the webpack pluging using weird lifecycle hooks. If it's started failing after you updated versions, they probably change something on their end.

skirang71 commented 1 week ago

Hey @juanjoDiaz Thanks for replying back! I was facing the import module error issue because i was not adding the .warmup folder to the packaged zip correctly. adding this` package: individually: true patterns: