Skip to content

Build fails when packages set under devDependencies #3977

Closed
@scazzy

Description

@scazzy

Is this a bug report?

Yes

Did you try recovering your dependencies?

Yes

Which terms did you search for in User Guide?

Some github issues and discord

Environment

  1. yarn v1.3.2
  2. Ejected

Then, specify:

  1. Operating system: Linux
  2. Browser and version (if relevant): CI/CD

Steps to Reproduce

  1. setup build and deploy pipeline in GoCD
  2. Yarn install - successfull
  3. NODE_ENV=production Yarn build - failed.

Expected Behavior

Should be able to build successfully

I had moved some non-critical devDeps unner devDeps in package.json. Worked smooth on local builds with and without prod mode. Fails on GoCD, asking for most/every package as dependency. Including chalk and webpack.

Actual Behavior

image

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