Skip to content

yarn list --depth=1 --json --production failed with code 1 #1508

Description

@bebbi

This is a (Bug Report / Feature Proposal)

Bug

Description

For bug reports:

  • What went wrong?

When trying to yarn serverless package --stage=...,
the error is

yarn list --depth=1 --json --production failed with code 1

  • What did you expect should have happened?

Do not call yarn listor --production as these are not supported by yarn berry.
For example here

  • What was the config you used?
  • What stacktrace or error message from your provider did you see?
Error: yarn list --depth=1 --json --production failed with code 1
    at ChildProcess.<anonymous> (/private/tmp/msm-api-new/node_modules/serverless-webpack/lib/utils.js:91:16)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1091:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at Pipe.<anonymous> (node:net:322:12)

For feature proposals:

  • What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
  • If there is additional config how would it look

Similar or dependent issue(s):

Additional Data

  • Serverless-Webpack Version you're using:
    5.11.0
  • Webpack version you're using:
    5.88.0
  • Serverless Framework Version you're using:
    3.32.2
  • Operating System:

but: yarn 3.4.1

  • Stack Trace (if available):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions