fix(docs): make the docs build run on node >= 19#2048
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docs failed to build on any Node >= 19 (
The "name" argument must be specifiedfromperformance.mark()), thrown by the ancient bundled@nuxt/kitinsidenuxt-component-metathat@nuxthq/studio(a Docus dependency) installs. This is also the likely cause of the failed Vercel preview on #2044.Fix: pin
nuxt-component-metato 0.18.0 via yarn resolutions. Verified locally: fullnuxi buildgreen 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.