Skip to content

Conversation

@Jeet-Srivastava
Copy link

Fixed docs parser crash when prop.tags is undefined (#15764)

Problem

The documentation parser in docs/source/api.js crashes with a TypeError: Cannot read properties of undefined (reading 'Symbol(Symbol.iterator)') when processing JSDoc comments that don't have tags. This causes the entire documentation build process to fail.

Root Cause

At line 273 in docs/source/api.js, the code attempts to iterate over prop.tags without checking if it exists:
When the dox parser encounters JSDoc comments without tags, prop.tags is undefined, causing the iterator to fail.

Solution

Added a defensive check before the iteration to skip properties without tags:

This allows the parser to gracefully skip entries without tags while continuing to process properly documented code.

@vkarpov15
Copy link
Collaborator

This was already fixed in #15765

@vkarpov15 vkarpov15 closed this Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants