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

Endless "Packaging" with @auth0/s3 #562

Open
mzl-md opened this issue Nov 25, 2024 · 0 comments
Open

Endless "Packaging" with @auth0/s3 #562

mzl-md opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mzl-md
Copy link

mzl-md commented Nov 25, 2024

Describe the bug
When using Serverless V4, serverless-esbuild and serverless-s3-sync, the sls package command gets stuck in the step Packaging.
I tracked it down to being caused by s3-sync using https://github.com/auth0/node-s3-client. If you include require('@auth0/s3'); in the index.ts of serverless-esbuild, the open event on the writeStream here will not be called and the promise never returns.
Moving serverless-s3-sync to the top of the plugins in serverless.yml seems to solve the problem in some cases, at least when serverless-domain-manager is between serverless-s3-sync and serverless-esbuild.

Steps to Reproduce

  • Open a project with serverless v4 and serverless-esbuild
  • Install @auth0/s3: npm i @auth0/s3
  • Add require('@auth0/s3'); to node_modules/serverless-esbuild/dist/index.js
  • Run Serverless: npx sls package --verbose

Screenshots

Screenshot 2024-11-25 at 12 28 33

Versions (please complete the following information):

  • OS: Mac
  • Serverless Framework Version: 4.4.11
  • Plugin Version: 1.54.6
@mzl-md mzl-md added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant