Skip to content

Commit 86b583e

Browse files
committed
ci: bump Node to 22.21.1 to fix build (registerHooks requires >=22.15.0)
@cloudflare/vite-plugin 1.43.0 imports `registerHooks` from `node:module`, which was added in Node 22.15.0. CI ran 22.14.0, causing the build to fail with "does not provide an export named 'registerHooks'". - .nvmrc: 22.14.0 -> 22.21.1 - ci.yml: read node-version-file (.nvmrc) so CI and local stay in sync - package.json engines: >=22.14.0 -> >=22.15.0
1 parent 9b86948 commit 86b583e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Node.js
1818
uses: actions/setup-node@v6
1919
with:
20-
node-version: "22.14.0"
20+
node-version-file: ".nvmrc"
2121
cache: "npm"
2222

2323
- name: Install dependencies

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.14.0
1+
22.21.1

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.0",
55
"type": "module",
66
"engines": {
7-
"node": ">=22.14.0 <23"
7+
"node": ">=22.15.0 <23"
88
},
99
"cloudflare": {
1010
"label": "Cloudflare Fullstack SaaS Starter",

0 commit comments

Comments
 (0)