Skip to content

Build fails with error "The --prefer-offline flag is deprecated; use the --cached flag with 'yarn add' instead" #9239

@eitambelahousky

Description

@eitambelahousky

Building using v26.0.19 produces the following error:

yarn.CMD process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 Output: ➤ YN0050: The --prefer-offline flag is deprecated; use the --cached flag with 'yarn add' instead

Attached a sample to reproduce the issue. Just run "yarn" and "yarn build" and you should see the issue

error sample.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions