Error codesState

An element() array handle cannot be undefined

MARKLESS_ELEMENT_HANDLE_ARRAY_OPTIONALerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_ELEMENT_HANDLE_ARRAY_OPTIONAL: "<handleName>" is declared with an array type or undefined, but an array handle is never undefined: it is an empty array until its elements render. Declare it element<<arrayType>>().
An array handle answers the elements on the page right now, in page order, so "none yet" is an empty array rather than undefined.
Write element<<arrayType>>() and check its length where you read it.
https://markless.dev/errors/MARKLESS_ELEMENT_HANDLE_ARRAY_OPTIONAL

Words in angle brackets change from case to case.

Why

An array handle answers the elements on the page right now, in page order, so "none yet" is an empty array rather than undefined.

Fix

Write element<<arrayType>>() and check its length where you read it.

Where Markless raises it

All error codes

Button sounds are from Josh Comeau's Button Sounds library.