Skip to content

Peer dependency issue with @rolldown/plugin-babel and Vite 8 #1144

Description

@AFCMS

Related plugins

Describe the bug

A brand new project created from the React + TypeScript + React Compiler template from create-vite@latest reports issues with peer dependencies on install:

 WARN  Issues with peer dependencies found
.
└─┬ @vitejs/plugin-react 6.0.0
  └── ✕ unmet peer @rolldown/plugin-babel@^0.1.7: found 0.2.0

Reproduction

https://stackblitz.com/edit/vitejs-vite-react-compiler-peer-repro

Steps to reproduce

pnpm create vite@latest --template react-compiler-ts --immediate --no-interactive vite-project-repro

You can see the warning in installation logs.

System Info

System:
    OS: Linux 6.18 Fedora Linux 43 (Workstation Edition)
    CPU: (32) x64 AMD Ryzen 9 9950X3D 16-Core Processor
    Memory: 47.50 GB / 62.34 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 24.11.0 - /home/afcm/.nvm/versions/node/v24.11.0/bin/node
    Yarn: 1.22.22 - /home/afcm/.nvm/versions/node/v24.11.0/bin/yarn
    npm: 11.11.0 - /home/afcm/.nvm/versions/node/v24.11.0/bin/npm
    pnpm: 10.32.1 - /home/afcm/.nvm/versions/node/v24.11.0/bin/pnpm
    bun: 1.3.10 - /home/afcm/.bun/bin/bun
    Deno: 2.7.5 - /home/afcm/.deno/bin/deno
  Browsers:
    Brave Browser: 145.1.87.192
    Chrome: 146.0.7680.71
    Firefox: 148.0.2
    Firefox Developer Edition: 148.0.2
  npmPackages:
    @vitejs/plugin-react: ^6.0.0 => 6.0.0 
    vite: ^8.0.0 => 8.0.0

Used Package Manager

pnpm

Logs

pnpm install
Packages: +179
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 210, reused 185, downloaded 0, added 179, done
 WARN  Issues with peer dependencies found
.
└─┬ @vitejs/plugin-react 6.0.0
  └── ✕ unmet peer @rolldown/plugin-babel@^0.1.7: found 0.2.0

dependencies:
+ react 19.2.4
+ react-dom 19.2.4

devDependencies:
+ @babel/core 7.29.0
+ @eslint/js 9.39.4 (10.0.1 is available)
+ @rolldown/plugin-babel 0.2.0
+ @types/babel__core 7.20.5
+ @types/node 24.12.0 (25.5.0 is available)
+ @types/react 19.2.14
+ @types/react-dom 19.2.3
+ @vitejs/plugin-react 6.0.0
+ babel-plugin-react-compiler 1.0.0
+ eslint 9.39.4 (10.0.3 is available)
+ eslint-plugin-react-hooks 7.0.1
+ eslint-plugin-react-refresh 0.5.2
+ globals 17.4.0
+ typescript 5.9.3
+ typescript-eslint 8.57.0
+ vite 8.0.0

Done in 1.3s using pnpm v10.32.1
npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vitejs/[email protected]
npm error Found: @rolldown/[email protected]
npm error node_modules/@rolldown/plugin-babel
npm error   dev @rolldown/plugin-babel@"^0.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional @rolldown/plugin-babel@"^0.1.7" from @vitejs/[email protected]
npm error node_modules/@vitejs/plugin-react
npm error   dev @vitejs/plugin-react@"^6.0.0" from the root project
npm error
npm error Conflicting peer dependency: @rolldown/[email protected]
npm error node_modules/@rolldown/plugin-babel
npm error   peerOptional @rolldown/plugin-babel@"^0.1.7" from @vitejs/[email protected]
npm error   node_modules/@vitejs/plugin-react
npm error     dev @vitejs/plugin-react@"^6.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/.npm/_logs/2026-03-12T19_26_34_575Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/.npm/_logs/2026-03-12T19_26_34_575Z-debug-0.log

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