Skip to content

Vitest basic example referenced from official docs is broken with v8 #21938

@terrymun

Description

@terrymun

Describe the bug

The vitest stackblitz example referenced in the official docs at https://vitest.dev/guide/ (pointing to https://vitest.new/) is broken:

Image

Reproduction

StackBlitz

Steps to reproduce

  1. Visit the official stackblitz demo for vitest at https://vitest.new/

  2. Notice all tests fail to run with the following error in the terminal:

    Error: Cannot read properties of undefined (reading 'whenLoaded')

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 22.22.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    vite: latest => 8.0.0

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: upstreamBug in a dependency of Vitep4-importantViolate documented behavior or significantly improves performance (priority)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions