serverless-plugin-warmup icon indicating copy to clipboard operation
serverless-plugin-warmup copied to clipboard

Plugin creates a empty lambda with no code

Open nahimdhaney opened this issue 1 year ago • 3 comments

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?

nahimdhaney avatar Jul 30 '24 14:07 nahimdhaney

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

skirang71 avatar Sep 28 '24 16:09 skirang71

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.

juanjoDiaz avatar Oct 02 '24 19:10 juanjoDiaz

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: - .warmup/** to my default warmer lambda fixed the issue

skirang71 avatar Oct 02 '24 23:10 skirang71