You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some investigation, we found the issue to be the usage of 'x-large' font size. In getTextLength, the code assumes the font size to be in pixels, and parsing 'x-large' led to undefined behaviors.
Regardless, we should still add checks to ensure we never try to reduce with an empty array
Updating on this, another issue that appeared: we pass configuration.width to drawAutomate. However, the width may be undefined. For some reason TS did not raise an error for this, but we should ensure there is a width set, which should fix the reduce empty array problem.
We should also add strict null checks to the tsconfig so bugs like this doesn't happen again in the future.
Running some examples in
docs\docs\99-api\examples
, (in particular,style_demo.js
) results inTypeError: Reduce of empty array with no initial value
.The text was updated successfully, but these errors were encountered: