Skip to content

dependent vite version #7230

@Debbl

Description

@Debbl

Describe the bug

https://github.com/Debbl/starter-ts/tree/fix/vitest-log-before

in vite@5.2.13, it will report this error when run pnpm run vitest

image

reletive

vitejs/vite#16219
vitejs/vite#14328

Reproduction

https://github.com/Debbl/starter-ts/tree/fix/vitest-log-before

git clone git@github.com:Debbl/starter-ts.git
git checkout fix/vitest-log-before

pnpm i
pnpm run test

https://github.com/Debbl/starter-ts/tree/fix/vitest-log-after

in vite@5.3.0, it's working.

image

System Info

System:
    OS: macOS 14.7.2
    CPU: (8) arm64 Apple M1 Pro
    Memory: 75.14 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.12.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.9.0 - /usr/local/bin/npm
    pnpm: 9.15.3 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.265
    Safari: 17.6
  npmPackages:
    vite: 5.3.0 => 5.3.0 
    vitest: 2.1.8 => 2.1.8

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