Frontmatter
| id | 9591 |
| title | Fix strict SSR parsing issues for CubeLayoutButton and highlighting |
| state | Closed |
| labels | [] |
| assignees | tobiu |
| createdAt | Mar 29, 2026, 1:23 PM |
| updatedAt | Mar 30, 2026, 1:30 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9591 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 30, 2026, 1:30 PM |
Fix strict SSR parsing issues for CubeLayoutButton and highlighting
Closed[]
Description When running server-side static HTML generation using the new
middleware-v2architecture, a few components and guides threw errors during strict isolated node parsing:CubeLayoutButtonattempts to readmainContentLayoutfromviewportControllersynchronously inconstruct. In SSR, the button is rendered in the markdown parse stream before having a parent hierarchy, resulting in aTypeError: Cannot read properties of null.GoogleAuthDemo.mdandAuthorization.mdguides containedenvlanguage tokens which are not recognized byhighlight.js, causing it to logconsole.errorand crash the strict rendering pipeline.Proposed Solution
?.) toCubeLayoutButton.mjsviewport controller reference.```envto```bashin the MCP authorization guides.