LearnNewsExamplesServices
Frontmatter
id9591
titleFix strict SSR parsing issues for CubeLayoutButton and highlighting
stateClosed
labels[]
assigneestobiu
createdAtMar 29, 2026, 1:23 PM
updatedAtMar 30, 2026, 1:30 PM
githubUrlhttps://github.com/neomjs/neo/issues/9591
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 30, 2026, 1:30 PM

Fix strict SSR parsing issues for CubeLayoutButton and highlighting

Closed[]
tobiu
tobiu commented on Mar 29, 2026, 1:23 PM

Description When running server-side static HTML generation using the new middleware-v2 architecture, a few components and guides threw errors during strict isolated node parsing:

  1. CubeLayoutButton attempts to read mainContentLayout from viewportController synchronously in construct. In SSR, the button is rendered in the markdown parse stream before having a parent hierarchy, resulting in a TypeError: Cannot read properties of null.
  2. The GoogleAuthDemo.md and Authorization.md guides contained env language tokens which are not recognized by highlight.js, causing it to log console.error and crash the strict rendering pipeline.

Proposed Solution

  • Add optional chaining (?.) to CubeLayoutButton.mjs viewport controller reference.
  • Change ```env to ```bash in the MCP authorization guides.
tobiu referenced in commit 40fdc20 - "bug: Fix strict SSR parsing issues for CubeLayoutButton and highlighting (#9591)" on Mar 29, 2026, 1:25 PM
tobiu assigned to @tobiu on Mar 30, 2026, 1:30 PM
tobiu closed this issue on Mar 30, 2026, 1:30 PM