Skip to content

[v1.0.0-beta5] Using Yarn PnP results in "MISSING DEP Can not find dependency 'vite'" error. #4575

@Unnoen

Description

@Unnoen

Describe the bug

Using Yarn 4.0.2 with PnP mode causes Vitest to error with MISSING DEP Can not find dependency 'vite'

Vitest v0.34.6 works in the same environment with PnP mode.

Reproduction

https://github.com/Unnoen/Vitest-1.0-Yarn-PnP-Reproduction

System Info

System:
  OS: Windows 11 10.0.22631
  CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
  Memory: 22.18 GB / 63.78 GB
Binaries:
  Node: 20.8.1 - C:\Program Files\nodejs\node.EXE
  Yarn: 4.0.2 - C:\Program Files\nodejs\yarn.CMD
  npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
  Edge: Chromium (119.0.2151.72)
  Internet Explorer: 11.0.22621.1

Used Package Manager

yarn

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions