Skip to content

Yarn add issues with workspaces and eslint #8405

@felipepsq

Description

@felipepsq

Bug description

Using latest version (1.22.10) and workspaces, when typing yarn add package in any workspace, it throws the following error:

error An unexpected error occurred: "expected workspace package to exist for \"eslint\"".

Setting yarn policies to 1.19.0 solved the problem.

Command

 yarn policies set-version 1.19.0

Environment

  • Yarn version: 1.22.10 (now 1.19.0)
  • Node version: 12.18.4
  • Platform: linux x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-in-modernThis issue has been fixed / implemented in Yarn 2+.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions