Skip to content

Commit 62afaa8

Browse files
aksOpsclaude
andcommitted
chore(deps): bump Node from v20.11.0 to v22.12.0 for Vite 8 (unblocks #86)
Vite 8 (pulled in by PR #86's vite group bump) raised its engine requirement to ^20.19.0 || >=22.12.0. Our pinned v20.11.0 fails the frontend-maven-plugin `npm run build` step immediately: SyntaxError: The requested module 'node:util' does not provide an export named 'styleText' (rolldown, which Vite 8 uses, depends on `node:util.styleText` — only in Node 20.18+/22.x). Pinning to v22.12.0 — the minimum v22 release that satisfies Vite 8 — keeps us on a currently-supported LTS line and unblocks dependabot's #86 vite group bump. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 833b403 commit 62afaa8

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,17 @@
260260
<version>2.0.0</version>
261261
<configuration>
262262
<workingDirectory>src/main/frontend</workingDirectory>
263-
<nodeVersion>v20.11.0</nodeVersion>
263+
<!--
264+
Node 22 LTS. Vite 8 (PR #86 brought it in via the vite
265+
group) raised its minimum engine to ^20.19.0 || >=22.12.0,
266+
and v20.11.0 fails immediately at frontend-maven-plugin's
267+
`npm run build` step (`SyntaxError: ... 'styleText'` from
268+
rolldown's use of node:util.styleText, which only lands
269+
in Node 20.18+/22.x). Pinning to v22.12.0 — the minimum
270+
v22 release that satisfies Vite 8 — keeps us on a
271+
currently-supported LTS line.
272+
-->
273+
<nodeVersion>v22.12.0</nodeVersion>
264274
<skip>${frontend.skip}</skip>
265275
</configuration>
266276
<executions>

0 commit comments

Comments
 (0)