Skip to content

@vitest/mocker v3.0.0-beta.2 does not support vite v6 as a peer-dependency #7072

@christopherschroer

Description

@christopherschroer

Describe the bug

When installing vite v6 and vitest v3.0.0-beta.2 using pnpm, I get the following warning:

image

It seems that @vitest/mocker v3.0.0-beta.2 does not support vite v6 as a peer-dependency

Reproduction

See https://github.com/vitest-dev/vitest/blob/v3.0.0-beta.2/packages/mocker/package.json#L58 for the problematic line

System Info

System:
    OS: Windows 11 10.0.22000
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 9.96 GB / 31.28 GB
  Binaries:
    Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.8.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.0 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Spartan (44.22000.2600.0), Chromium (131.0.2903.51)
    Internet Explorer: 11.0.22000.2600
  npmPackages:
    @vitejs/plugin-react-swc: 3.7.2 => 3.7.2
    @vitest/coverage-v8: 3.0.0-beta.2 => 3.0.0-beta.2
    @vitest/ui: 3.0.0-beta.2 => 3.0.0-beta.2
    vite: 6.0.3 => 6.0.3
    vitest: 3.0.0-beta.2 => 3.0.0-beta.2

Used Package Manager

pnpm

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