Skip to content

Incorrect import/no-unresolved error on Windows 11 #449

Open
@Archinowsk

Description

@Archinowsk

After updating eslint-import-resolver-typescript version 3.9.0 to 4.3.4, my Windows machine starts to report import/no-unresolved errors for two imports. Other imports work fine. All imports work fine on Mac and Linux.

import { defineConfig, globalIgnores } from "eslint/config";
import typescriptEslint from "typescript-eslint";

Repro repo: https://github.com/Archinowsk/eslint-import-resolver-typescript-bug-reproduction

  1. Install yarn and run yarn install (correct yarn version included in repo)
  2. Run yarn eslint
  3. This will produce two import/no-unresolved errors, for eslint/config and typescript-eslint.
  4. The same error will appear in eslint.config.js and index.ts to demonstrate it appears outside ESLint config file.

Environment:

  • OS: Windows 11
  • NodeJS: 22.11.0
  • Yarn: 4.9.1

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