build(deps-dev): bump web frontend dependencies to latest#1128
build(deps-dev): bump web frontend dependencies to latest#1128yansongda merged 3 commits intodependabot/npm_and_yarn/web/vite-7.1.11from
Conversation
Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>
Deploying pay with
|
| Latest commit: |
d5908bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ad231258.pay-1bj.pages.dev |
| Branch Preview URL: | https://copilot-sub-pr-1117.pay-1bj.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dependabot/npm_and_yarn/web/vite-7.1.11 #1128 +/- ##
==========================================================================
Coverage ? 97.59%
Complexity ? 1080
==========================================================================
Files ? 385
Lines ? 7013
Branches ? 0
==========================================================================
Hits ? 6844
Misses ? 169
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot 似乎 cloudflare pages build 失败了,请帮忙解决一下。 日志如下: 2026-03-20T08:17:45.354391Z Cloning repository...
2026-03-20T08:17:46.465682Z From https://github.com/yansongda/pay
2026-03-20T08:17:46.465954Z * branch 08d216f11465913e045edbae10ab1a114ef42ebf -> FETCH_HEAD
2026-03-20T08:17:46.466025Z
2026-03-20T08:17:46.527671Z HEAD is now at 08d216f build(deps-dev): update all web frontend dependencies to latest versions
2026-03-20T08:17:46.527887Z
2026-03-20T08:17:46.562179Z
2026-03-20T08:17:46.562465Z Using v2 root directory strategy
2026-03-20T08:17:46.575228Z Success: Finished cloning repository files
2026-03-20T08:17:48.48378Z Checking for configuration in a Wrangler configuration file (BETA)
2026-03-20T08:17:48.484158Z
2026-03-20T08:17:49.572505Z No Wrangler configuration file found. Continuing.
2026-03-20T08:17:50.351362Z Preparing yarn@3.6.3 for immediate activation...
2026-03-20T08:17:50.512664Z Preparing pnpm@8.7.1 for immediate activation...
2026-03-20T08:17:50.624781Z Detected the following tools from environment: pnpm@8.7.1, nodejs@18.17.1
2026-03-20T08:17:50.792192Z ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.12.1.tgz
2026-03-20T08:17:51.792941Z Installing project dependencies: pnpm install
2026-03-20T08:17:52.336707Z Lockfile is up to date, resolution step is skipped
2026-03-20T08:17:52.373268Z Progress: resolved 1, reused 0, downloaded 0, added 0
2026-03-20T08:17:52.392658Z Packages: +166
2026-03-20T08:17:52.392777Z ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2026-03-20T08:17:53.374726Z Progress: resolved 166, reused 0, downloaded 103, added 102
2026-03-20T08:17:54.202256Z Progress: resolved 166, reused 0, downloaded 166, added 166, done
2026-03-20T08:17:54.30341Z
2026-03-20T08:17:54.30363Z devDependencies:
2026-03-20T08:17:54.303684Z + @types/node 25.5.0
2026-03-20T08:17:54.30372Z + fast-glob 3.3.3
2026-03-20T08:17:54.303749Z + sass 1.98.0
2026-03-20T08:17:54.303777Z + vite 8.0.1
2026-03-20T08:17:54.303804Z + vitepress 1.6.4
2026-03-20T08:17:54.30383Z + vue 3.5.30
2026-03-20T08:17:54.303856Z
2026-03-20T08:17:54.303909Z ╭ Warning ─────────────────────────────────────────────────────────────────────╮
2026-03-20T08:17:54.303958Z │ │
2026-03-20T08:17:54.303991Z │ Ignored build scripts: @parcel/watcher, esbuild. │
2026-03-20T08:17:54.304019Z │ Run "pnpm approve-builds" to pick which dependencies should be allowed │
2026-03-20T08:17:54.304051Z │ to run scripts. │
2026-03-20T08:17:54.304591Z │ │
2026-03-20T08:17:54.304671Z ╰──────────────────────────────────────────────────────────────────────────────╯
2026-03-20T08:17:54.304723Z
2026-03-20T08:17:54.319215Z Done in 2.3s using pnpm v10.12.1
2026-03-20T08:17:54.346397Z Executing user command: pnpm web:build
2026-03-20T08:17:54.768632Z
2026-03-20T08:17:54.768862Z > @ web:build /opt/buildhome/repo/web
2026-03-20T08:17:54.769047Z > vitepress build
2026-03-20T08:17:54.769124Z
2026-03-20T08:17:55.123742Z
2026-03-20T08:17:55.125187Z �[32m�[1mvitepress�[22m v1.6.4�[39m
2026-03-20T08:17:55.125455Z
2026-03-20T08:17:55.129014Z - building client + server bundles...
2026-03-20T08:17:55.245145Z �[31mfailed to load config from /opt/buildhome/repo/web/vite.config.ts�[39m
2026-03-20T08:17:55.245343Z �[31m✖�[0m building client + server bundles...
2026-03-20T08:17:55.245894Z �[31mbuild error:�[39m
2026-03-20T08:17:55.246244Z The requested module 'node:util' does not provide an export named 'styleText'
2026-03-20T08:17:55.246346Z file:///opt/buildhome/repo/web/node_modules/.pnpm/rolldown@1.0.0-rc.10/node_modules/rolldown/dist/shared/rolldown-build-yQC7KN8K.mjs:9
2026-03-20T08:17:55.246407Z import { formatWithOptions, styleText } from "node:util";
2026-03-20T08:17:55.246538Z ^^^^^^^^^
2026-03-20T08:17:55.246607Z SyntaxError: The requested module 'node:util' does not provide an export named 'styleText'
2026-03-20T08:17:55.246662Z at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
2026-03-20T08:17:55.24672Z at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
2026-03-20T08:17:55.274724Z ELIFECYCLE Command failed with exit code 1.
2026-03-20T08:17:55.306781Z Failed: Error while executing user command. Exited with error code: 1
2026-03-20T08:17:55.31217Z Failed: build command exited with code: 1
2026-03-20T08:17:56.472308Z Failed: error occurred while running build command |
Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>
已在 commit d5908bf 中修复。 根本原因: 修复方案:在 |
There was a problem hiding this comment.
Pull request overview
Updates the web/ frontend toolchain dependencies (Vite/Vue/Sass/Node typings) and documents the Node.js runtime requirement needed for Cloudflare Pages builds.
Changes:
- Bump dev dependencies:
viteto8.0.1,vueto3.5.30,sassto1.98.0, and@types/nodeto25.5.0. - Regenerate
pnpm-lock.yamlto reflect the upgraded dependency graph (including newrolldown/lightningcsstransitive deps). - Add Node runtime documentation via
web/.node-versionandpackage.json#engines.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| web/pnpm-lock.yaml | Updates lockfile for the new Vite/Vue/Sass/@types/node versions and resulting transitive dependency changes. |
| web/package.json | Bumps devDependencies and adds a Node.js engines requirement. |
| web/.node-version | Adds a Node version hint for builds (Cloudflare Pages / local tooling). |
Files not reviewed (1)
- web/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "vue": "^3.5.30" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20.12.0" |
There was a problem hiding this comment.
The Node.js engine range (>=20.12.0) does not satisfy Vite 8's declared requirement in the lockfile (node: ^20.19.0 || >=22.12.0). This can cause pnpm to warn/fail installs or Cloudflare Pages builds when it picks a 20.12–20.18 runtime. Update the engines.node constraint to match Vite/Rolldown's minimum (e.g., >=20.19.0 or the same ^20.19.0 || >=22.12.0).
| "node": ">=20.12.0" | |
| "node": "^20.19.0 || >=22.12.0" |
| @@ -0,0 +1 @@ | |||
| 20 | |||
There was a problem hiding this comment.
This file pins Node to major version "20", which may resolve to a 20.x version below Vite 8's required minimum (20.19.0). To avoid CI/Cloudflare picking an incompatible 20.x release, pin an explicit version (e.g., 20.19.0+) that satisfies the dependency engines range.
| 20 | |
| 20.19.0 |
12f1752
into
dependabot/npm_and_yarn/web/vite-7.1.11
* build(deps-dev): bump vite from 7.1.6 to 7.1.11 in /web Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.1.6 to 7.1.11. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v7.1.11/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 7.1.11 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps-dev): bump web frontend dependencies to latest (#1128) * Initial plan * build(deps-dev): update all web frontend dependencies to latest versions Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com> * fix: add .node-version to require Node 20 for vite 8.x compatibility Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: yansongda <11869114+yansongda@users.noreply.github.com>
@types/nodefrom^24.5.2to^25.5.0sassfrom^1.92.1to^1.98.0vitefrom^7.1.11to^8.0.1vuefrom^3.5.21to^3.5.30pnpm-lock.yamlaccordinglyweb/.node-version(Node 20) to fix Cloudflare Pages build —vite 8.xusesrolldownwhich requiresnode:util.styleText, available only in Node.js ≥ 20.12.0enginesfield inpackage.jsonto document the Node.js requirement⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.