Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin creates a empty lambda with no code #354

Open
nahimdhaney opened this issue Jul 30, 2024 · 3 comments
Open

Plugin creates a empty lambda with no code #354

nahimdhaney opened this issue Jul 30, 2024 · 3 comments

Comments

@nahimdhaney
Copy link

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
Copy link

skirang71 commented Sep 28, 2024

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

@juanjoDiaz
Copy link
Owner

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants