From f2b80ad8e5fbe04f4c9dbe2375d5e5cc7653dea9 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Wed, 23 Sep 2026 16:50:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E5=90=8C=E6=AD=A5=20package-lock.j?= =?UTF-8?q?son=E2=80=94=E2=80=94classnames/dayjs=20=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=AF=BC=E8=87=B4=20npm=20ci=20EUSAGE=20(#20?= =?UTF-8?q?20=20=E5=90=8E=E7=BB=AD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR#2020 在 apps/web/package.json 中新增了 classnames ^2.5.1 和 dayjs ^1.11.23 的显式依赖(此前它们是 antd/@ant-design/icons 的传递依赖),但仅用 pnpm add 更新了 pnpm-lock.yaml,未同步更新 CI(web.Dockerfile)实际使用的 package-lock.json。 lockfile 中 dayjs 仍停留在 1.11.21(由 antd 传递引入),npm ci 严格校验版本不匹配: npm error `npm ci` can only install packages when your package.json and package-lock.json ... are in sync. npm error Invalid: lock file's dayjs@1.11.21 does not satisfy dayjs@1.11.23 导致 CI Run #54590 Build Staging Web Image 连续三次(含一次 --no-cache)失败, 而 API/Worker 镜像构建不受影响。 修复:在 apps/web 下重新执行 npm install,将 package-lock.json 与 package.json 同步到 dayjs@1.11.23 / classnames@2.5.1 作为顶级依赖。本地已验证: - npm ci 成功安装 444 包 - tsc --noEmit 零错误 - vite build 成功产出 dist/ - eslint 通过 --- apps/web/package-lock.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/package-lock.json b/apps/web/package-lock.json index dcaf42a7b..103e4e845 100644 --- a/apps/web/package-lock.json +++ b/apps/web/package-lock.json @@ -12,6 +12,8 @@ "@tanstack/react-query": "^5.45.0", "antd": "^5.18.0", "axios": "^1.7.2", + "classnames": "^2.5.1", + "dayjs": "^1.11.23", "mp4box": "^2.4.1", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -3005,9 +3007,9 @@ } }, "node_modules/dayjs": { - "version": "1.11.21", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.21.tgz", - "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==", + "version": "1.11.23", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", "license": "MIT" }, "node_modules/debug": {