Skip to content

[Bug] Resolve error: unable to load resolver "node" import/named with ESLint configured #1427

Description

@IT-CASADO
  • I'd be willing to implement a fix

Describe the bug

I try to use Yarn 2 together with ESLint and Prettier, but I get this error:

Resolve error: unable to load resolver "node" import/named
Resolve error: unable to load resolver "node" import/no-extraneous-dependencies
(and five more errors)

To Reproduce

Clone this git repository: https://github.com/IT-CASADO/yarn-eslint/tree/yarn-v2
(master branch contains the same configuration with Yarn 1)

Execute following command: yarn eslint ./src/.

Environment if relevant (please complete the following information):

  • OS: [Windows]
  • Node version [12.17.0]
  • Yarn version [2.0.0-rc.33]

Additional context

I followed this steps here:

I'm assuming no configuration errors with ESLint, because it is working with Yarn 1.
Do I miss something special for Yarn 2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions