Skip to content

perf(web): optimize web Rsbuild and Tailwind build pipeline - #5786

Merged
Calcium-Ion merged 2 commits into
mainfrom
perf/web-rsbuild-tailwind
Jul 2, 2026
Merged

perf(web): optimize web Rsbuild and Tailwind build pipeline#5786
Calcium-Ion merged 2 commits into
mainfrom
perf/web-rsbuild-tailwind

Conversation

@QuentinHsu

@QuentinHsu QuentinHsu commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

⚠️ 提交说明 / PR Notice

Important

  • 请提供人工撰写的简洁摘要,避免直接粘贴未经整理的 AI 输出。

📝 变更描述 / Description

(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)

概述

  • 将 web 前端共享依赖版本集中到 workspace catalog。
  • 升级 Rsbuild 到 2.1 系列,并迁移 default 前端 Tailwind CSS 编译链路。

改动说明

  • default 和 classic 前端复用 catalog 中的 React、Rsbuild 和相关共享依赖版本。
  • default 前端移除 @tailwindcss/postcss 和 PostCSS 配置。
  • default 前端接入 @rsbuild/plugin-tailwindcss,由 Rsbuild 直接执行 Tailwind CSS 编译。
  • 关闭 Tailwind optimize 与 Rsbuild buildCache,降低构建峰值内存压力。

效果

  • Tailwind 编译不再额外经过 PostCSS 管线。
  • 前端依赖版本管理更集中,减少 default 与 classic 之间的版本漂移。
  • buildCache 关闭会牺牲重复构建缓存收益,但换取更低的构建内存压力。

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix) - 请关联对应 Issue,避免将设计取舍、理解偏差或预期不一致直接归类为 bug
  • ✨ 新功能 (New feature) - 重大特性建议先通过 Issue 沟通
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

  • Closes # (如有)

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 我已搜索现有的 IssuesPRs,确认不是重复提交。
  • Bug fix 说明: 若此 PR 标记为 Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。
  • 变更理解: 我已理解这些更改的工作原理及可能影响。
  • 范围聚焦: 本 PR 未包含任何与当前任务无关的代码改动。
  • 本地验证: 已在本地运行并通过测试或手动验证,维护者可以据此复核结果。
  • 安全合规: 代码中无敏感凭据,且符合项目代码规范。

📸 运行证明 / Proof of Work

(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

Summary by CodeRabbit

  • Chores
    • Updated the web app’s shared dependency versions to use centralized catalog resolution.
    • Adjusted the default web app’s build setup to align with the latest React and Rsbuild package versions.
    • Removed an extra styling-related configuration from the default web app setup.
    • Disabled build caching in one app configuration and added Tailwind support to the build pipeline.

- move shared Rsbuild and React versions into the web workspace catalog.
- reference the catalog from default and classic packages so both frontends stay aligned.
- upgrade Rsbuild packages to 2.1 and share plugin versions through the web workspace catalog.
- replace the Tailwind PostCSS pipeline with the Rsbuild Tailwind plugin to avoid an extra compilation step.
- disable Tailwind optimization and Rsbuild build cache to lower peak memory during frontend builds.
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 21a8491a-f1af-4545-bd5f-f89e190e5ea6

📥 Commits

Reviewing files that changed from the base of the PR and between 3a506f5 and 117e226.

⛔ Files ignored due to path filters (1)
  • web/bun.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • web/classic/package.json
  • web/default/package.json
  • web/default/postcss.config.mjs
  • web/default/rsbuild.config.ts
  • web/package.json
💤 Files with no reviewable changes (1)
  • web/default/postcss.config.mjs

Walkthrough

Dependency versions for react, react-dom, and Rsbuild packages are centralized into the workspace catalog in web/package.json. Both web/classic and web/default are updated to reference catalog: specifiers. In web/default, Tailwind CSS integration moves from PostCSS (postcss.config.mjs removed, @tailwindcss/postcss dependency dropped) to the Rsbuild pluginTailwindcss. Build cache is disabled in rsbuild.config.ts.

Changes

Catalog wiring and Tailwind plugin migration

Layer / File(s) Summary
Workspace catalog definitions
web/package.json
Adds @rsbuild/core, @rsbuild/plugin-react, @rsbuild/plugin-tailwindcss, react, and react-dom entries to the catalog section.
Switch packages to catalog specifiers
web/classic/package.json, web/default/package.json
Replaces pinned semver strings with catalog: for React and Rsbuild deps in both packages; removes @tailwindcss/postcss from web/default dependencies.
Rsbuild Tailwind plugin, PostCSS removal
web/default/rsbuild.config.ts, web/default/postcss.config.mjs
Deletes postcss.config.mjs, imports and registers pluginTailwindcss({ optimize: false }) in Rsbuild config, and sets buildCache: false.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • QuantumNous/new-api#5227: Directly related — also centralizes frontend dependency versions into the workspace catalog: pattern across web/*/package.json and web/package.json.

Poem

🐇 A catalog blooms where versions once sprawled,
Tailwind now lives where the Rsbuild is called.
PostCSS config hops off into the night,
One tidy workspace, dependencies right.
This bunny approves — the build gleams bright! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main focus on optimizing the web Rsbuild and Tailwind build pipeline.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch perf/web-rsbuild-tailwind

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Calcium-Ion
Calcium-Ion merged commit 95e8c5e into main Jul 2, 2026
2 checks passed
henrydontbbai added a commit to henrydontbbai/henry-newapi that referenced this pull request Jul 2, 2026
* feat: improve advanced custom route editor

* Bump Electron lockfile dependencies

* feat: bill doubao seedance-2.0 by output resolution and video input (QuantumNous#5300)

* feat: support doubao seedance 2.0 safety_identifier/priority and 4k billing (QuantumNous#5824)

* feat: support safety_identifier and priority for doubao video

* feat: add 4k resolution billing tier for doubao video

* chore: run `bun format` to automatically format the frontend code

* fix(web): 修复自定义 HTML 样式被过滤及排版间距异常的问题 (QuantumNous#5795)

* fix(web): 修复自定义 HTML 样式被过滤及排版间距异常的问题

* fix(web): isolate custom HTML rendering

---------

Co-authored-by: CaIon <i@caion.me>

* feat: support Wan2.7 i2v media mapping (QuantumNous#4984)

* feat: support Wan2.7 i2v media mapping

* fix: normalize wan2.7 i2v image inputs

* perf(web): optimize web Rsbuild and Tailwind build pipeline (QuantumNous#5786)

* fix(dev): run only default frontend in dev-web

- simplify make dev-web to install default dependencies and start web/default only.
- keep dev-web-classic as the standalone classic entry and scope its install to classic.

* chore(build): align make targets with web naming

- rename frontend make targets and variables to use the web terminology consistently.
- keep default and classic dev port overrides available under the updated names.

* fix(web): inject app styles into isolated HTML (QuantumNous#5860)

- clone loaded application style nodes into the Shadow DOM for custom HTML rendering.
- keep HTML rendering isolated while restoring layout and typography that depend on app CSS.

* fix: keep page state when switching tabs within the same route (QuantumNous#5796)

AnimatedOutlet keyed its motion container by the full pathname, so
navigating between params of the same route (e.g. the dashboard tabs
under /dashboard/$section) changed the key and remounted the route
component, discarding its in-memory state. The most visible symptom:
the dashboard time range resets to the default every time you switch
sub-tabs (Model Analytics / Flow / User Analytics).

Key the transition by the matched route id instead, so param-only
navigation re-renders in place while real page-to-page navigation
still plays the enter animation. This also preserves state across the
other $section tab pages (usage logs, models, system settings).

* 支持服务优雅关闭,避免重启回复中断和面板缓存数据丢失 (QuantumNous#4258)

* feat: add graceful shutdown with configurable timeout

* fix: flush quota dashboard cache on graceful shutdown

Persist the in-memory CacheQuotaData aggregation to the quota_data table
before process exit, so a restart no longer drops up to one DataExportInterval
window of dashboard data (issue QuantumNous#5679).

* docs: update AGENTS.md

* Make quota logging synchronous and delay startup log

---------

Co-authored-by: CaIon <i@caion.me>
Co-authored-by: feitianbubu <feitianbubu@qq.com>
Co-authored-by: t0ng7u <dev@aiass.cc>
Co-authored-by: olwater <52482488+olwater@users.noreply.github.com>
Co-authored-by: Scott <sc908181134@gmail.com>
Co-authored-by: QuentinHsu <xuquentinyang@gmail.com>
Co-authored-by: henrydontbbai <268972047+henrydontbbai@users.noreply.github.com>
@Calcium-Ion
Calcium-Ion deleted the perf/web-rsbuild-tailwind branch July 3, 2026 08:57
@h7ml

h7ml commented Jul 3, 2026

Copy link
Copy Markdown

升级 Rsbuild 到 2.1 系列 似乎是这个原因导致 打包失败。


dist/static/js/async/4020.ec62e640ec.js                                746.4 kB     235.3 kB
dist/static/js/async/1321.57468c4551.js                                786.7 kB     210.7 kB
dist/static/js/9659.932e82bd07.js                                      789.7 kB     239.5 kB
dist/static/js/async/9443.92b5e3f8fc.js                                793.9 kB     201.6 kB
dist/static/js/async/4625.ca05e2b342.js                                1239.7 kB    404.9 kB
dist/static/js/async/6565.ea4a5b2e72.js                                1319.1 kB    426.9 kB
dist/static/js/async/2823.bd1826f244.js                                1625.0 kB    302.7 kB
dist/static/js/async/7017.fbc80fb346.js                                1664.5 kB    485.5 kB
dist/static/js/async/5893.377dca6fb8.js                                1961.9 kB    418.0 kB
dist/static/js/async/6956.756db2b9a3.js                                2060.7 kB    560.1 kB
dist/static/js/async/3290.4259835c6a.js                                2119.8 kB    560.7 kB
dist/static/js/async/2633.72480a00ad.js                                2147.8 kB    478.0 kB
dist/static/js/index.2952cb4752.js                                     2832.8 kB    778.1 kB
dist/static/js/async/9858.a66f857f40.js                                3164.3 kB    374.1 kB
dist/static/js/async/3444.11744b1879.js                                5088.1 kB    1968.3 kB
dist/static/js/async/7528.04887f5b43.js                                5285.7 kB    998.9 kB
dist/static/js/async/9907.71a56feb4b.js                                5371.6 kB    1203.9 kB
dist/static/js/async/2280.e14cc5906c.js                                6827.3 kB    2750.5 kB
                                                              Total:   57108.9 kB   16487.1 kB
--> 13c4f6869c2c
[2/4] STEP 1/9: FROM oven/bun:1@sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 AS builder-classic
[2/4] STEP 2/9: WORKDIR /build/web
--> Using cache e2fc56330cbc53a67a0c8d0b5d5490de026f314d20076063e185ceb858843299
--> e2fc56330cbc
[2/4] STEP 3/9: COPY web/package.json web/bun.lock ./
--> Using cache 120d37998d9319a1b136d02ac41ece73bb3f57bc818024c880e492687221b9b0
--> 120d37998d93
[2/4] STEP 4/9: COPY web/default/package.json ./default/package.json
--> Using cache 6a0b46cc4b0b7f93e28fe1dff36c876388cf7e5934beb1a3a9c3342c10fc5e27
--> 6a0b46cc4b0b
[2/4] STEP 5/9: COPY web/classic/package.json ./classic/package.json
--> Using cache 86462fc77f49823633683a4a9bcfdc472e1a9ecf0d867be2b678ee866e2395a6
--> 86462fc77f49
[2/4] STEP 6/9: RUN bun install --filter ./classic --frozen-lockfile
bun install v1.3.11 (af24e281)
1027 packages installed [5.98s]
--> 0794ce360d5f
[2/4] STEP 7/9: COPY ./web/classic ./classic
--> c9f0afb561b8
[2/4] STEP 8/9: COPY ./VERSION /build/VERSION
--> 0347f24bb6a8
[2/4] STEP 9/9: RUN cd classic && VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build
$ rsbuild build
Rsbuild v2.1.4
info    build started...
error   Build error: 
File: ./src/helpers/render.jsx:483:12-19
  × ESModulesLinkingError: export 'SiSlack' (imported as 'SiSlack') was not found in 'react-icons/si' (possible exports: Si1001Tracklists, Si1And1, Si1Dot1Dot1Dot1, Si1Panel, Si1Password, Si2Fas, Si2K, Si30Secondsofcode, Si365Datascience, Si3M, Si42, Si4Chan, Si4D, Si500Px, Si7Zip, Si99Designs, Si9Gag, SiAbb, SiAbbott, SiAbbvie, SiAbdownloadmanager, SiAboutdotme, SiAbstract, SiAbusedotch, SiAcademia, SiAccenture, SiAccusoft, SiAccuweather, SiAcer, SiAcm, SiAcode, SiActigraph, SiActiveloop, SiActivision, SiActivitypub, SiActix, SiActualbudget, SiAcura, SiAda, SiAdafruit, SiAdaway, SiAdblock, SiAdblockplus, SiAddydotio, SiAdguard, SiAdidas, SiAdminer, SiAdonisjs, SiAdp, SiAdroll, SiAdventofcode, SiAdyen, SiAegisauthenticator, SiAeroflot, SiAeromexico, SiAfdian, SiAffine, SiAframe, SiAfterpay, SiAftership, SiAgentskills, SiAgora, SiAib, SiAidungeon, SiAiohttp, SiAiqfome, SiAirasia, SiAirbnb, SiAirbrake, SiAirbus, SiAirbyte, SiAircall, SiAircanada, SiAirchina, SiAirfrance, SiAirindia, SiAirplayaudio, SiAirplayvideo, SiAirserbia, SiAirtable, SiAirtel, SiAirtransat, SiAjv, SiAkamai, SiAkasaair, SiAkaunting, SiAkiflow, SiAlacritty, SiAlamy, SiAlbertheijn, SiAlby, SiAlchemy, SiAldinord, SiAldisud, SiAlfred, SiAlgolia, SiAlgorand, SiAlibabacloud, SiAlibabadotcom, SiAlienware, SiAliexpress, SiAlipay, SiAlist, SiAllegro, SiAlliedmodders, SiAlltrails, SiAlmalinux, SiAlpinedotjs, SiAlpinelinux, SiAlternativeto, SiAlwaysdata, SiAmd, SiAmeba, SiAmericanairlines, SiAmericanexpress, SiAmg, SiAmp, SiAmul, SiAna, SiAnaconda, SiAnalogue, SiAndela, SiAndroid, SiAndroidauto, SiAndroidstudio, SiAngular, SiAnichart, SiAnilist, SiAnimalplanet, SiAnimedotjs, SiAnkermake, SiAnki, SiAnsible, SiAnswer, SiAnsys, SiAnta, SiAntdesign, SiAntena3, SiAntennapod, SiAnthropic, SiAntv, SiAnycubic, SiAnydesk, SiAnytype, SiApache, SiApacheairflow, SiApacheant, SiApachearrow, SiApacheavro, SiApachecassandra, SiApachecloudstack, SiApachecordova, SiApachecouchdb, SiApachedolphinscheduler, SiApachedoris, SiApachedruid, SiApacheecharts, SiApacheflink, SiApachefreemarker, SiApachegroovy, SiApacheguacamole, SiApachehadoop, SiApachehbase, SiApachehive, SiApachejmeter, SiApachekafka, SiApachekylin, SiApachelucene, SiApachemaven, SiApachenetbeanside, SiApachenifi, SiApacheopenoffice, SiApacheparquet, SiApachepdfbox, SiApachepulsar, SiApacherocketmq, SiApachesolr, SiApachespark, SiApachestorm, SiApachesuperset, SiApachetomcat, SiAparat, SiApifox, SiApmterminals, SiApollographql, SiApostrophe, SiAppgallery, SiAppian, SiAppimage, SiAppium, SiApple, SiApplearcade, SiApplemusic, SiApplenews, SiApplepay, SiApplepodcasts, SiAppletv, SiAppmanager, SiAppsignal, SiAppsmith, SiAppstore, SiAppveyor, SiAppwrite, SiAqua, SiAral, SiArangodb, SiArc, SiArcgis, SiArchicad, SiArchiveofourown, SiArchlinux, SiArdour, SiArduino, SiArgo, SiArgos, SiAriakit, SiArkecosystem, SiArlo, SiArm, SiArmkeil, SiArstechnica, SiArtifacthub, SiArtixlinux, SiArtstation, SiArxiv, SiAsahilinux, SiAsana, SiAsciidoctor, SiAsciinema, SiAsda, SiAseprite, SiAssemblyscript, SiAsterisk, SiAstonmartin, SiAstra, SiAstral, SiAstro, SiAsus, SiAtandt, SiAtari, SiAtlasos, SiAtlassian, SiAuchan, SiAudacity, SiAudi, SiAudible, SiAudiobookshelf, SiAudioboom, SiAudiomack, SiAudiotechnica, SiAurelia, SiAutentique, SiAuth0, SiAuthelia, SiAuthentik, SiAutocad, SiAutocannon, SiAutodesk, SiAutodeskmaya, SiAutodeskrevit, SiAutohotkey, SiAutoit, SiAutomattic, SiAutoprefixer, SiAutozone, SiAvajs, SiAvaloniaui, SiAvast, SiAvianca, SiAvira, SiAvm, SiAwait, SiAwesomelists, SiAwesomewm, SiAwwwards, SiAxios, SiAxisbank, SiB4X, SiBabel, SiBabelio, SiBabylondotjs, SiBackblaze, SiBackbone, SiBackbonedotjs, SiBackendless, SiBackstage, SiBackstageCasting, SiBadoo, SiBaidu, SiBakalari, SiBamboo, SiBambulab, SiBandcamp, SiBandlab, SiBandrautomation, SiBandsintown, SiBankofamerica, SiBarclays, SiBaremetrics, SiBarmenia, SiBasecamp, SiBaserow, SiBaseui, SiBasicattentiontoken, SiBastyon, SiBat, SiBata, SiBattledotnet, SiBazel, SiBeatport, SiBeats, SiBeatsbydre, SiBeatstars, SiBeekeeperstudio, SiBehance, SiBeijingsubway, SiBem, SiBentley, SiBento, 
     ╭─[483:11]
 481 │     x: SiX,
 482 │     twitter: SiX,
 483 │     slack: SiSlack,
     ·            ───────
 484 │     telegram: SiTelegram,
 485 │     wechat: SiWechat,
     ╰────
Import traces (entry → error):
  ./src/index.jsx
  ./src/components/layout/PageLayout.jsx
  ./src/helpers/index.js
  ./src/helpers/render.jsx ×
error   build failed in 14.0s
error   Rspack build failed.
    at <anonymous> (/build/web/node_modules/@rsbuild/core/dist/756.js:4322:141)
    at processTicksAndRejections (native:7:39)
error: script "build" exited with code 1
Error: building at STEP "RUN cd classic && VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build": while running runtime: exit status 1
Error: `buildah --root /vercel/.containers/storage --runroot /run/containers/storage --registries-conf /tmp/vercel-container-registries-K1d2UU/registries.conf build --platform linux/amd64 --layers --network host -t vcr.vercel.com/fishx/new-api/dockerfile:ea5528381a04 -f /vercel/path0/Dockerfile.vercel /vercel/path0` exited with code 1
error   Rspack build failed.
    at <anonymous> (/build/web/node_modules/@rsbuild/core/dist/756.js:4322:141)
    at processTicksAndRejections (native:7:39)
error: script "build" exited with code 1
Error: building at STEP "RUN cd classic && VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build": while running runtime: exit status 1


@QuentinHsu

Copy link
Copy Markdown
Collaborator Author

升级 Rsbuild 到 2.1 系列 似乎是这个原因导致 打包失败。


dist/static/js/async/4020.ec62e640ec.js                                746.4 kB     235.3 kB
dist/static/js/async/1321.57468c4551.js                                786.7 kB     210.7 kB
dist/static/js/9659.932e82bd07.js                                      789.7 kB     239.5 kB
dist/static/js/async/9443.92b5e3f8fc.js                                793.9 kB     201.6 kB
dist/static/js/async/4625.ca05e2b342.js                                1239.7 kB    404.9 kB
dist/static/js/async/6565.ea4a5b2e72.js                                1319.1 kB    426.9 kB
dist/static/js/async/2823.bd1826f244.js                                1625.0 kB    302.7 kB
dist/static/js/async/7017.fbc80fb346.js                                1664.5 kB    485.5 kB
dist/static/js/async/5893.377dca6fb8.js                                1961.9 kB    418.0 kB
dist/static/js/async/6956.756db2b9a3.js                                2060.7 kB    560.1 kB
dist/static/js/async/3290.4259835c6a.js                                2119.8 kB    560.7 kB
dist/static/js/async/2633.72480a00ad.js                                2147.8 kB    478.0 kB
dist/static/js/index.2952cb4752.js                                     2832.8 kB    778.1 kB
dist/static/js/async/9858.a66f857f40.js                                3164.3 kB    374.1 kB
dist/static/js/async/3444.11744b1879.js                                5088.1 kB    1968.3 kB
dist/static/js/async/7528.04887f5b43.js                                5285.7 kB    998.9 kB
dist/static/js/async/9907.71a56feb4b.js                                5371.6 kB    1203.9 kB
dist/static/js/async/2280.e14cc5906c.js                                6827.3 kB    2750.5 kB
                                                              Total:   57108.9 kB   16487.1 kB
--> 13c4f6869c2c
[2/4] STEP 1/9: FROM oven/bun:1@sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 AS builder-classic
[2/4] STEP 2/9: WORKDIR /build/web
--> Using cache e2fc56330cbc53a67a0c8d0b5d5490de026f314d20076063e185ceb858843299
--> e2fc56330cbc
[2/4] STEP 3/9: COPY web/package.json web/bun.lock ./
--> Using cache 120d37998d9319a1b136d02ac41ece73bb3f57bc818024c880e492687221b9b0
--> 120d37998d93
[2/4] STEP 4/9: COPY web/default/package.json ./default/package.json
--> Using cache 6a0b46cc4b0b7f93e28fe1dff36c876388cf7e5934beb1a3a9c3342c10fc5e27
--> 6a0b46cc4b0b
[2/4] STEP 5/9: COPY web/classic/package.json ./classic/package.json
--> Using cache 86462fc77f49823633683a4a9bcfdc472e1a9ecf0d867be2b678ee866e2395a6
--> 86462fc77f49
[2/4] STEP 6/9: RUN bun install --filter ./classic --frozen-lockfile
bun install v1.3.11 (af24e281)
1027 packages installed [5.98s]
--> 0794ce360d5f
[2/4] STEP 7/9: COPY ./web/classic ./classic
--> c9f0afb561b8
[2/4] STEP 8/9: COPY ./VERSION /build/VERSION
--> 0347f24bb6a8
[2/4] STEP 9/9: RUN cd classic && VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build
$ rsbuild build
Rsbuild v2.1.4
info    build started...
error   Build error: 
File: ./src/helpers/render.jsx:483:12-19
  × ESModulesLinkingError: export 'SiSlack' (imported as 'SiSlack') was not found in 'react-icons/si' (possible exports: Si1001Tracklists, Si1And1, Si1Dot1Dot1Dot1, Si1Panel, Si1Password, Si2Fas, Si2K, Si30Secondsofcode, Si365Datascience, Si3M, Si42, Si4Chan, Si4D, Si500Px, Si7Zip, Si99Designs, Si9Gag, SiAbb, SiAbbott, SiAbbvie, SiAbdownloadmanager, SiAboutdotme, SiAbstract, SiAbusedotch, SiAcademia, SiAccenture, SiAccusoft, SiAccuweather, SiAcer, SiAcm, SiAcode, SiActigraph, SiActiveloop, SiActivision, SiActivitypub, SiActix, SiActualbudget, SiAcura, SiAda, SiAdafruit, SiAdaway, SiAdblock, SiAdblockplus, SiAddydotio, SiAdguard, SiAdidas, SiAdminer, SiAdonisjs, SiAdp, SiAdroll, SiAdventofcode, SiAdyen, SiAegisauthenticator, SiAeroflot, SiAeromexico, SiAfdian, SiAffine, SiAframe, SiAfterpay, SiAftership, SiAgentskills, SiAgora, SiAib, SiAidungeon, SiAiohttp, SiAiqfome, SiAirasia, SiAirbnb, SiAirbrake, SiAirbus, SiAirbyte, SiAircall, SiAircanada, SiAirchina, SiAirfrance, SiAirindia, SiAirplayaudio, SiAirplayvideo, SiAirserbia, SiAirtable, SiAirtel, SiAirtransat, SiAjv, SiAkamai, SiAkasaair, SiAkaunting, SiAkiflow, SiAlacritty, SiAlamy, SiAlbertheijn, SiAlby, SiAlchemy, SiAldinord, SiAldisud, SiAlfred, SiAlgolia, SiAlgorand, SiAlibabacloud, SiAlibabadotcom, SiAlienware, SiAliexpress, SiAlipay, SiAlist, SiAllegro, SiAlliedmodders, SiAlltrails, SiAlmalinux, SiAlpinedotjs, SiAlpinelinux, SiAlternativeto, SiAlwaysdata, SiAmd, SiAmeba, SiAmericanairlines, SiAmericanexpress, SiAmg, SiAmp, SiAmul, SiAna, SiAnaconda, SiAnalogue, SiAndela, SiAndroid, SiAndroidauto, SiAndroidstudio, SiAngular, SiAnichart, SiAnilist, SiAnimalplanet, SiAnimedotjs, SiAnkermake, SiAnki, SiAnsible, SiAnswer, SiAnsys, SiAnta, SiAntdesign, SiAntena3, SiAntennapod, SiAnthropic, SiAntv, SiAnycubic, SiAnydesk, SiAnytype, SiApache, SiApacheairflow, SiApacheant, SiApachearrow, SiApacheavro, SiApachecassandra, SiApachecloudstack, SiApachecordova, SiApachecouchdb, SiApachedolphinscheduler, SiApachedoris, SiApachedruid, SiApacheecharts, SiApacheflink, SiApachefreemarker, SiApachegroovy, SiApacheguacamole, SiApachehadoop, SiApachehbase, SiApachehive, SiApachejmeter, SiApachekafka, SiApachekylin, SiApachelucene, SiApachemaven, SiApachenetbeanside, SiApachenifi, SiApacheopenoffice, SiApacheparquet, SiApachepdfbox, SiApachepulsar, SiApacherocketmq, SiApachesolr, SiApachespark, SiApachestorm, SiApachesuperset, SiApachetomcat, SiAparat, SiApifox, SiApmterminals, SiApollographql, SiApostrophe, SiAppgallery, SiAppian, SiAppimage, SiAppium, SiApple, SiApplearcade, SiApplemusic, SiApplenews, SiApplepay, SiApplepodcasts, SiAppletv, SiAppmanager, SiAppsignal, SiAppsmith, SiAppstore, SiAppveyor, SiAppwrite, SiAqua, SiAral, SiArangodb, SiArc, SiArcgis, SiArchicad, SiArchiveofourown, SiArchlinux, SiArdour, SiArduino, SiArgo, SiArgos, SiAriakit, SiArkecosystem, SiArlo, SiArm, SiArmkeil, SiArstechnica, SiArtifacthub, SiArtixlinux, SiArtstation, SiArxiv, SiAsahilinux, SiAsana, SiAsciidoctor, SiAsciinema, SiAsda, SiAseprite, SiAssemblyscript, SiAsterisk, SiAstonmartin, SiAstra, SiAstral, SiAstro, SiAsus, SiAtandt, SiAtari, SiAtlasos, SiAtlassian, SiAuchan, SiAudacity, SiAudi, SiAudible, SiAudiobookshelf, SiAudioboom, SiAudiomack, SiAudiotechnica, SiAurelia, SiAutentique, SiAuth0, SiAuthelia, SiAuthentik, SiAutocad, SiAutocannon, SiAutodesk, SiAutodeskmaya, SiAutodeskrevit, SiAutohotkey, SiAutoit, SiAutomattic, SiAutoprefixer, SiAutozone, SiAvajs, SiAvaloniaui, SiAvast, SiAvianca, SiAvira, SiAvm, SiAwait, SiAwesomelists, SiAwesomewm, SiAwwwards, SiAxios, SiAxisbank, SiB4X, SiBabel, SiBabelio, SiBabylondotjs, SiBackblaze, SiBackbone, SiBackbonedotjs, SiBackendless, SiBackstage, SiBackstageCasting, SiBadoo, SiBaidu, SiBakalari, SiBamboo, SiBambulab, SiBandcamp, SiBandlab, SiBandrautomation, SiBandsintown, SiBankofamerica, SiBarclays, SiBaremetrics, SiBarmenia, SiBasecamp, SiBaserow, SiBaseui, SiBasicattentiontoken, SiBastyon, SiBat, SiBata, SiBattledotnet, SiBazel, SiBeatport, SiBeats, SiBeatsbydre, SiBeatstars, SiBeekeeperstudio, SiBehance, SiBeijingsubway, SiBem, SiBentley, SiBento, 
     ╭─[483:11]
 481 │     x: SiX,
 482 │     twitter: SiX,
 483 │     slack: SiSlack,
     ·            ───────
 484 │     telegram: SiTelegram,
 485 │     wechat: SiWechat,
     ╰────
Import traces (entry → error):
  ./src/index.jsx
  ./src/components/layout/PageLayout.jsx
  ./src/helpers/index.js
  ./src/helpers/render.jsx ×
error   build failed in 14.0s
error   Rspack build failed.
    at <anonymous> (/build/web/node_modules/@rsbuild/core/dist/756.js:4322:141)
    at processTicksAndRejections (native:7:39)
error: script "build" exited with code 1
Error: building at STEP "RUN cd classic && VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build": while running runtime: exit status 1
Error: `buildah --root /vercel/.containers/storage --runroot /run/containers/storage --registries-conf /tmp/vercel-container-registries-K1d2UU/registries.conf build --platform linux/amd64 --layers --network host -t vcr.vercel.com/fishx/new-api/dockerfile:ea5528381a04 -f /vercel/path0/Dockerfile.vercel /vercel/path0` exited with code 1
error   Rspack build failed.
    at <anonymous> (/build/web/node_modules/@rsbuild/core/dist/756.js:4322:141)
    at processTicksAndRejections (native:7:39)
error: script "build" exited with code 1
Error: building at STEP "RUN cd classic && VITE_REACT_APP_VERSION=$(cat /build/VERSION) bun run build": while running runtime: exit status 1

感谢反馈,问题已在 #5892 得到修复

xiaomingchen pushed a commit to xiaomingchen/new-api that referenced this pull request Jul 10, 2026
Jacobinwwey pushed a commit to Jacobinwwey/new-api that referenced this pull request Jul 11, 2026
ruanhangjian pushed a commit to ruanhangjian/new-api that referenced this pull request Jul 11, 2026
zhaodechao2008 pushed a commit to zhaodechao2008/new-api that referenced this pull request Jul 27, 2026
330079598 pushed a commit to 330079598/new-api that referenced this pull request Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants