Skip to Content
Node runtime

Node runtime

The repository targets Node.js 26. .nvmrc holds 26.11, the README and CI read it, and CI no longer floats on lts/*.

Before the move I ran type-check, lint, format, the unit and story tests, both builds, the icon check and a route comparison on 26.11.1, after a clean install in the root and in docs-site/. All passed, and served responses were byte-identical to Node 22. The tables are in docs/research/2026-10-11-node-26-verification.md. They show Yarn commands, because the repository moved to PNPM the same day. Use the pnpm equivalents.

What I have not verified

  • Vercel. The production, staging, Storybook (operation-looking-glass-storybook) and docs (looking-glass-docs) projects choose Node from their own settings. The token I had could not read them, so I do not know whether each offers Node 26. I will not call the site deployable on Node 26 until a preview build on it succeeds.
  • PostHog source-map upload. The build gate that enables withPostHogConfig needs credentials a local build does not have, so I never exercised that path.
  • Motion and route-scroll probes. They fail the same way on Node 22 and Node 26 in the environment I used, so that environment cannot judge them. Run pnpm probe:transitions and pnpm probe:route-scroll against a Node 26 production server before shipping.

Messages you will see

  • ExperimentalWarning: localStorage is not available during pnpm build. It comes from the eval package that the Vanilla Extract webpack plugin uses, which enumerates the localStorage global that Node 25+ added. It is harmless, and no application code reads storage on the server.
  • DEP0205: module.register() is deprecated from the Vitest and Storybook tooling. It is theirs to fix.

Rollout

  1. Merge the .nvmrc, CI and documentation change. It affects local setup and GitHub Actions only. Vercel does not read .nvmrc.
  2. In each Vercel project, check Settings, Build and Deployment, Node.js Version. When 26.x is listed, set it on a preview first, deploy, and compare against production.
  3. Only then add "engines": { "node": "26.x" } to package.json and docs-site/package.json. Vercel reads engines.node and it overrides the project setting, so adding it before support exists would break every deploy. That is why it is not in the repository yet.
  4. Node 26 became LTS on 2026-10-28, so nothing forces the Vercel step to happen quickly.

Fallback

Revert .nvmrc to the previous value and the CI and README lines follow. Remove engines.node if it was added. The runtime change is independent of the Yarn to PNPM migration (#263): corepack and the pinned package manager do not depend on the Node major, so I can revert either one alone. If Node 26 turns out to be unsupported on Vercel for long, Node 24 LTS is my contingency.

Last updated on