Related plugins
Describe the bug
https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#react-compiler
should add @babel/core and @types/babel__core as development dependencies; otherwise, type errors will occur.
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
Related plugins
plugin-react
plugin-react-swc
plugin-react-oxc
plugin-rsc
Describe the bug
https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#react-compiler
should add
@babel/coreand@types/babel__coreas development dependencies; otherwise, type errors will occur.Reproduction
https://github.com/fnoopv/vit8test
Steps to reproduce
Projects created using
pnpm create vite@latestwork 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.0Used Package Manager
pnpm
Logs
No response
Validations