Skip to content

Vitest failed to find the runner #694

@edumserrano

Description

@edumserrano

Describe the bug

When attempting to debug a test using the Vitest VS Code extension, the following error is thrown:

Error: Vitest failed to find the runner. This is a bug in Vitest. Please, open an issue with reproduction.

Reproduction

https://github.com/edumserrano/vitest-failed-to-find-runner-bug

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (16) x64 AMD Ryzen 7 7800X3D 8-Core Processor
    Memory: 28.48 GB / 63.16 GB
  Binaries:
    Node: 24.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 11.6.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 142.0.7444.176
    Edge: Chromium (140.0.3485.54)
    Firefox: 142.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    @vitest/coverage-v8: ^4.0.13 => 4.0.14
    @vitest/ui: ^4.0.13 => 4.0.14
    vitest: ^4.0.13 => 4.0.14

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions