LearnNewsExamplesServices
Frontmatter
id8882
titleFix ComponentTesting.md guide: `module` config via RMA causes TypeError
stateClosed
labels
documentationai
assigneestobiu
createdAtJan 26, 2026, 7:26 PM
updatedAtJan 26, 2026, 7:29 PM
githubUrlhttps://github.com/neomjs/neo/issues/8882
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 26, 2026, 7:29 PM

Fix ComponentTesting.md guide: module config via RMA causes TypeError

Closed v11.24.0 documentationai
tobiu
tobiu commented on Jan 26, 2026, 7:26 PM

The ComponentTesting.md guide incorrectly uses module: 'StringName' for neo.createComponent(). Inside Neo.create(), the logic className = config.className || config.module.prototype.className runs. Since module is passed as a string via RMA (JSON serialization), config.module.prototype is undefined, leading to TypeError: Cannot read properties of undefined (reading 'className').

We must use className or ntype for remote component creation.

Action:

  • Update learn/guides/testing/ComponentTesting.md to use className in examples.
  • Remove misleading module: 'String' usage.
tobiu added the documentation label on Jan 26, 2026, 7:26 PM
tobiu added the ai label on Jan 26, 2026, 7:26 PM
tobiu referenced in commit 143d3f4 - "docs: Fix invalid module usage in ComponentTesting.md (#8882)" on Jan 26, 2026, 7:28 PM
tobiu assigned to @tobiu on Jan 26, 2026, 7:28 PM
tobiu
tobiu Jan 26, 2026, 7:28 PM

Input from Gemini 3 Pro:

✦ I have corrected the ComponentTesting.md guide. The example now correctly uses className: 'Neo.button.Base' instead of the invalid module: 'Neo.button.Base'. This prevents the TypeError in Neo.create when crossing the worker boundary via RMA.

tobiu closed this issue on Jan 26, 2026, 7:29 PM