You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
one serve on Node 26.11+ answers route loader requests with 500: TypeError: Illegal invocation from new Request(finalUrl, request) #1109
On Node 26.11 and later, one serve answers the request for a route's loader module, which the client imports before it renders a route it navigates to (linkTo, doPreload), with 500, and logs TypeError: Illegal invocation from new Request(finalUrl, request). request is @hono/node-server's lightweight request, whose duplex falls through to the getter undici brand-checks from Node 26.11 on (honojs/node-server#408).
Expected Behavior
one serve answers the loader request on Node 26 as it does on Node 24.
One Version
main at 2c6b6be, with its @hono/node-server 2.1.6; v2.13.6 has the same line and range
repro/ runs against the checkout's own packages. With Node 26.11 or later on PATH, bash repro/reproduce.sh installs and builds the checkout, builds repro/, starts one serve, requests / and the loader module of / with the build's cache key, and exits 1 while that request answers 500 and the server logs TypeError: Illegal invocation. In Docker's node:26 image it ends with:
node v26.13.0, undici 8.12.2
GET / -> 200
GET /assets/_72593962_vxrn_loader.js -> 500
TypeError: Illegal invocation
at webidl.brandCheck (node:internal/deps/undici/undici:3602:21)
at get duplex (node:internal/deps/undici/undici:13702:16)
at Object.RequestInit (node:internal/deps/undici/undici:3860:35)
at new Request (node:internal/deps/undici/undici:13322:34)
at new Request$1 (file:///one/node_modules/@hono/node-server/dist/index.mjs:211:3)
at file:///one/packages/one/dist/esm/server/oneServe.mjs:707:28
In Docker's node:24 image the same script exits 0, ending with:
node v24.22.2, undici 7.30.1
GET / -> 200
GET /assets/_65796643_vxrn_loader.js -> 200
Activity