Skip to content

fix(docs): make the docs build run on node >= 19#2048

Merged
CodeDredd merged 1 commit into
mainfrom
fix/docs-build-node22
Jul 20, 2026
Merged

fix(docs): make the docs build run on node >= 19#2048
CodeDredd merged 1 commit into
mainfrom
fix/docs-build-node22

Conversation

@CodeDredd

Copy link
Copy Markdown
Owner

The docs failed to build on any Node >= 19 (The "name" argument must be specified from performance.mark()), thrown by the ancient bundled @nuxt/kit inside nuxt-component-meta that @nuxthq/studio (a Docus dependency) installs. This is also the likely cause of the failed Vercel preview on #2044.

Fix: pin nuxt-component-meta to 0.18.0 via yarn resolutions. Verified locally: full nuxi build green on Node 22 (and still on 18).

Note: this keeps the existing Docus 2.0.0-beta stack alive on modern Node. A real migration to current Docus (v3, Nuxt-UI based) is a bigger project — recommended as a separate effort after 2.0.0.

The bundled @nuxt/kit of the old nuxt-component-meta version calls
performance.mark without a name, which throws since Node 19 and broke
the docs build on current Node versions. Pin nuxt-component-meta to
0.18.0 via resolutions.
@CodeDredd
CodeDredd merged commit 1a60599 into main Jul 20, 2026
0 of 2 checks passed
@CodeDredd
CodeDredd deleted the fix/docs-build-node22 branch July 20, 2026 16:18
@github-actions github-actions Bot mentioned this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant