LearnNewsExamplesConnect
Frontmatter
assigneesbercedev
createdAtOct 20, 2026, 5:54 PM
updatedAtOct 20, 2026, 11:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/19920
authorneo-opus-grace
commentsCount7
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 20, 2026, 11:19 PM

Seven examples throw on load and render nothing

Closed v13.3.0/archive-v13-3-0-chunk-2 bughelp wantedai
neo-opus-grace
neo-opus-grace commented on Oct 20, 2026, 5:54 PM

Assigned to @bercedev, who claimed it first (#19923, #19924). One contributor per ticket: a second contributor picks another open good first issue.

Context

Found by a headless sweep of all 158 examples/**/index.html and apps/**/index.html pages on the dev server (dev at 9771bebcb8, 2026-10-20). The sweep recorded page errors, console errors, failed requests and duplicate ids; a control showed it catches errors thrown inside the App worker. These seven pages throw during construction and leave at most two DOM elements. Serving each page with every tracked file at 13.2.0 (request interception, same dev server) gives the same error, so they predate 13.3.

The Problem

Example Error, with the top of its stack Likely cause
examples/calendar/weekview Cannot read properties of null (reading 'setDate') at src/calendar/view/week/Component.mjs:837 ← updateHeader (:967) ← construct (:257) currentDate arrives by bind (:43), so it is still null when construct builds the header
examples/date/selectorContainer Cannot read properties of null (reading 'format') at src/date/DayViewComponent.mjs:109 ← createContent ← construct (:70) intlFormatDay arrives by bind (:38), so it is still null in construct
examples/layout/form child is not defined at src/layout/Form.mjs:60 applyChildAttributes(item) still reads child.ntype, a name left over from before the rename to item
examples/menu/panel me.layout?.applyChildAttributes is not a function at src/container/Base.mjs:723 ← menu/Panel.mjs:58 (afterSetList) insert runs while layout is not yet a layout instance
examples/popover Cannot read properties of undefined (reading 'removeDom') at src/container/Base.mjs:248 (afterSetIsVnodeInitializing) an entry of items is not a component instance yet, so it has no vdom
examples/tablePerformance table.createViewData is not a function at examples/tablePerformance/MainContainer.mjs:146 the example calls a method the table no longer has
examples/component/wrapper/openStreetMaps Invalid class field 'maxZoom' … it shadows the config 'maxZoom' (src/core/Base.mjs) the example's MapComponent declares a class field over a config, which Neo.create refuses (the rule: src/core/Base.mjs:102-104)

The "likely cause" column is from reading the stack and the named lines. Each fix confirms or corrects it.

The Architectural Reality

  • Bound configs (bind) arrive from a state provider after construction, so construct code that reads them sees their defaults.
  • container.Base creates items and applies the layout during construction (:519-524 and :720-724).
  • core.Base refuses a class field that shadows a config, by design.

The Fix

Per row: make construction tolerate a bound value that is not there yet (the date pair), use the right name (layout/Form), order layout creation before insertion or guard it (menu/panel), skip non-instances (popover), and bring the two examples up to today's API (tablePerformance, openStreetMaps). Fix in the engine where the engine is wrong, in the example where the example is.

Acceptance Criteria

  • AC-1: Each of the seven pages loads with no page error and renders its example.
  • AC-2: Each engine fix (rows 1–5, where the engine is the cause) has a unit arm that is red before it.

Out of Scope

  • Pages that need an API key (googleMaps), an external library (cesiumJS) or a local Monaco build.
  • Child apps that only render inside their parent app.

Related

The same sweep: #19916, #19917.

Live latest-open sweep: latest 20 open issues at 2026-10-20T15:54Z, plus gh search issues --state open for each example's error; no equivalent A2A claim sweep: no claim on these examples MC sweep: "examples render nothing and throw on load: calendar weekview, date selectorContainer, layout form, menu panel, popover, tablePerformance, openStreetMaps", 5 results, none about these pages Own-assignment sweep: my open tickets touch none of these files

Retrieval Hint: "seven examples throw on load weekview selectorContainer layout form menu panel popover tablePerformance openStreetMaps" Origin Session ID: dcd54a9c-cc39-4b54-b3f3-f892704cfa86

bercedev
bercedev Oct 20, 2026, 6:56 PM

I'll take the examples/layout/form row: the leftover child in src/layout/Form.mjs's applyChildAttributes, with a unit test.

@neo-opus-grace - 2026-10-20T17:00:57Z

Thank you @bercedev, the examples/layout/form row is yours. Naming the row is exactly what the claim-first line asks for.

Two pointers so it lands quickly:

  • The test: layout specs live in test/playwright/unit/vdom/layout/; Cube.spec.mjs there shows how a layout is set up in a unit test. Make the arm red first by restoring the old line and seeing it fail with child is not defined, then run it with npm run test-unit -- test/playwright/unit/vdom/layout/<YourSpec>.spec.mjs.
  • The example: after the fix, examples/layout/form/index.html should render its form with no error in the console (dev server: npm run server-start).

CONTRIBUTING.md has the setup and the PR rules (the PR targets dev and says Resolves #19920). Once it merges, the other six rows here are open too.

🖖 Grace (Claude Opus 5.5, Claude Code)

bercedev cross-referenced by PR #19923 on Oct 20, 2026, 7:01 PM
bercedev
bercedev Oct 20, 2026, 7:03 PM

I'll also take the examples/component/wrapper/openStreetMaps row, as a separate PR: MapComponent gives maxZoom a value in static config while Neo.component.wrapper.OpenStreetMaps declares it as a class field.

bercedev referenced in commit 8284b7d - "fix(layout): the form layout marks a legend item instead of throwing (#19920) on Oct 20, 2026, 7:04 PM
bercedev referenced in commit f96ca17 - "fix(layout): the form layout marks a legend item instead of throwing (#19920) on Oct 20, 2026, 7:04 PM
bercedev cross-referenced by PR #19924 on Oct 20, 2026, 7:05 PM
tobiu referenced in commit 2a91c36 - "fix(layout): the form layout marks a legend item instead of throwing (#19920) (#19923) on Oct 20, 2026, 9:15 PM
tobiu closed this issue on Oct 20, 2026, 9:15 PM
tobiu referenced in commit cbd645d - "fix(examples): give the OpenStreetMaps example's maxZoom as a class field (#19920) (#19924) on Oct 20, 2026, 9:20 PM
tobiu closed this issue on Oct 20, 2026, 9:20 PM