# Cannot read properties of undefined (reading 'length')

**URL:** <https://forum.makecode.com/t/cannot-read-properties-of-undefined-reading-length/33981>\
**Category:** Help\
**Created:** [February 19, 2025, 6:13pm UTC](https://forum.makecode.com/t/cannot-read-properties-of-undefined-reading-length/33981 "2025-02-19T18:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unique](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unique/32/32724_2.png) [@Unique](https://forum.makecode.com/u/Unique)\
**Post date:** [February 19, 2025, 6:13pm UTC](https://forum.makecode.com/t/cannot-read-properties-of-undefined-reading-length/33981/1 "2025-02-19T18:13:54Z")

</div>

This error is being given whenever I try to convert TS to blocks. The error cites the first line of main.ts. I’m trying to figure out the error’s reasoning but failed.

> **[project](https://arcade.makecode.com/S12441-38843-67393-34006)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [February 19, 2025, 6:44pm UTC](https://forum.makecode.com/t/cannot-read-properties-of-undefined-reading-length/33981/2 "2025-02-19T18:44:11Z")

</div>

@Unique here you go:

> **[project](https://arcade.makecode.com/91915-80385-42425-88254)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

this was a bug caused by the pauseUntil block… seems to be fixed in beta though
