peerDependencies oxc-transform-react range (^0.145.0) is out of date, breaks npm install after [email protected]

未关闭
#1,437 12 条评论 7 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@Boshen 已经在做这个了。

开始于 2026年8月28日。

  • #1536 来自 @joelvoss —— 已关闭,未合并

评估

这个 Issue 还没有评估数据。

描述

pending triage
Related plugins
Describe the bug

The published @vitejs/[email protected] declares:

"peerDependencies": {
  "oxc-transform-react": "^0.145.0"
}

oxc-transform-react has since been published at 0.147.0 on npm (https://www.npmjs.com/package/oxc-transform-react). Installing a project that has oxc-transform-react@^0.147.0 in its own dependencies together with @vitejs/[email protected] now fails with ERESOLVE, because npm's default resolver won't satisfy a peer range of ^0.145.0 with 0.147.0 installed.

This is the same class of issue as #1144 (stale @rolldown/plugin-babel peer range).

Reproduction

https://stackblitz.com/edit/vitejs-vite-rudrnkqt?file=package.json

Steps to reproduce
  1. Open the reproduction link
  2. Open the terminal and run: npm install
System Info
System:
    OS: macOS 26.6.2
    CPU: (12) arm64 Apple M3 Pro
    Memory: 637.84 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.19.0 - /opt/homebrew/opt/node@24/bin/node
    npm: 11.17.0 - /opt/homebrew/opt/node@24/bin/npm
    bun: 1.4.0 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 152.0.7977.65
    Safari: 26.6.2
  npmPackages:
    @vitejs/plugin-react: ^6.1.0 => 6.1.0
    oxc-transform-react: ^0.147.0 => 0.147.0
    vite: ^8.2.2 => 8.2.2
Used Package Manager

npm

Logs

No response

Validations
主要语言
TypeScript
星标
1.2k
派生
287
平均合并
1 天 17 小时
30 天内合并 PR
19

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vitejs/vite-plugin-react 的其他 Issue

查看 vitejs/vite-plugin-react 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。