Skip to content

vite8+plugin-react6: the documentation section for reactCompiler is missing dependencies. #1145

@fnoopv

Description

@fnoopv

Related plugins

Describe the bug

https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#react-compiler

Image

should add @babel/core and @types/babel__core as development dependencies; otherwise, type errors will occur.

Image

Reproduction

https://github.com/fnoopv/vit8test

Steps to reproduce

Projects created using pnpm create vite@latest work fine; however, I encountered issues when attempting to upgrade an existing Vite 7 project by following the tutorial.

System Info

System:
    OS: Linux 6.19 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 7735HS with Radeon Graphics
    Memory: 17.74 GB / 28.13 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.22.0 - /home/fnoopv/.nvm/versions/node/v22.22.0/bin/node
    npm: 10.9.4 - /home/fnoopv/.nvm/versions/node/v22.22.0/bin/npm
    pnpm: 10.32.1 - /home/fnoopv/.local/share/pnpm/pnpm
  Browsers:
    Firefox: 148.0
    Firefox Developer Edition: 148.0
  npmPackages:
    @vitejs/plugin-react: ^6.0.0 => 6.0.0 
    vite: ^8.0.0 => 8.0.0

Used Package Manager

pnpm

Logs

No response

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