An element() array handle cannot be undefined
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_OPTIONALWords 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.
Related
Where Markless raises it
Button sounds are from Josh Comeau's Button Sounds library.