Skip to content

Endless "Packaging" with @auth0/s3 #562

@mzl-md

Description

@mzl-md

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions