You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a bit of debugging on this and it seems like it might be related to this PR in esbuild.
When serverless-localstack overwrites the esbuild hooks it removes the await this.disposeContexts(); call from the esbuild hook which seems to make esbuild hang.
I have a monorepo with a lot of packages, and just realize that the order matters here, putting esbuild after localstack fixes the issue.
this works: plugins:
* serverless-localstack
* serverless-esbuild
this get stuck: plugins:
* serverless-esbuild
* serverless-localstack
the problem is that this doesn't actually work. None of the lambdas deploy successfully in local stack when i do this even though the deployment completes. It looks like LS plugin has to run first in order to work, so this is not a viable workaround.
After running
serverless deploy
, the lambda is indeed deployed toLocalStack
but the process is still running and stuck on:How to reproduce:
serverless.yml
handler.ts
The text was updated successfully, but these errors were encountered: