Frontmatter
| id | 8882 |
| title | Fix ComponentTesting.md guide: `module` config via RMA causes TypeError |
| state | Closed |
| labels | documentationai |
| assignees | tobiu |
| createdAt | Jan 26, 2026, 7:26 PM |
| updatedAt | Jan 26, 2026, 7:29 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8882 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 26, 2026, 7:29 PM |
Fix ComponentTesting.md guide: module config via RMA causes TypeError
tobiu assigned to @tobiu on Jan 26, 2026, 7:28 PM

tobiu
Jan 26, 2026, 7:28 PM
Input from Gemini 3 Pro:
✦ I have corrected the
ComponentTesting.mdguide. The example now correctly usesclassName: 'Neo.button.Base'instead of the invalidmodule: 'Neo.button.Base'. This prevents theTypeErrorinNeo.createwhen crossing the worker boundary via RMA.
tobiu closed this issue on Jan 26, 2026, 7:29 PM
The
ComponentTesting.mdguide incorrectly usesmodule: 'StringName'forneo.createComponent(). InsideNeo.create(), the logicclassName = config.className || config.module.prototype.classNameruns. Sincemoduleis passed as a string via RMA (JSON serialization),config.module.prototypeisundefined, leading toTypeError: Cannot read properties of undefined (reading 'className').We must use
classNameorntypefor remote component creation.Action:
learn/guides/testing/ComponentTesting.mdto useclassNamein examples.module: 'String'usage.