# JavaScript error

**URL:** <https://forum.makecode.com/t/javascript-error/30177>\
**Category:** Help\
**Tags:** game, make, demo, platformer\
**Created:** [August 18, 2024, 12:23am UTC](https://forum.makecode.com/t/javascript-error/30177 "2024-08-18T00:23:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [August 18, 2024, 12:23am UTC](https://forum.makecode.com/t/javascript-error/30177/1 "2024-08-18T00:23:16Z")

</div>

I’ve made a game that includes the character animations extension, but whenever I try to convert my code from JavaScript to blocks, it gives me an error on all the code saying “Cannot read properties of undefined (reading ‘attributes’)”. can someone please help?

> **[DASH THE ROBOT](https://arcade.makecode.com/S02904-46121-38219-96943)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

here’s the code if anyone needs it.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 18, 2024, 12:27am UTC](https://forum.makecode.com/t/javascript-error/30177/2 "2024-08-18T00:27:58Z")

</div>

Hi, @not_a_lemon !

It’s the same problem that @Josef had last week. @richard 's Fancy Text extension really hates going back to Blocks after you’ve switched to JavaScript. I haven’t had a chance to look at the extension to help fix it, but it’s on my list of things to get to … hopefully by the end of the month.

Anyway, here you go:

> **[DASH THE ROBOT](https://arcade.makecode.com/77542-38255-22307-19021)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [August 18, 2024, 1:46am UTC](https://forum.makecode.com/t/javascript-error/30177/3 "2024-08-18T01:46:00Z")

</div>

thanks so much for the quick reply! I thought it was the character animations extension 😅

---

<div class="post-metadata">

**Author:** ![not\_a\_lemon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not_a_lemon/32/35289_2.png) [@not\_a\_lemon](https://forum.makecode.com/u/not_a_lemon)\
**Post date:** [August 25, 2024, 1:18am UTC](https://forum.makecode.com/t/javascript-error/30177/4 "2024-08-25T01:18:59Z")

</div>

also @AlexK, I don’t know if this has anything to do with the problem, but I’ve found in the api.ts file in the fancy text extension the icon code looks like this:  
 ![Screenshot 2024-08-24 2.19.33 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/2/e263c801f905b7c3663aebc44b400587308cbd73.png)  
instead of looking like this:  
 ![Screenshot 2024-08-24 2.21.15 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/6/66d2be6dd34e221592b96db6d78ff7874e306e00.png)  
there is a $ instead of a %, and I’ve also edited the code a bit myself and found that the icon actually doesn’t show up with a $.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 25, 2024, 1:19am UTC](https://forum.makecode.com/t/javascript-error/30177/5 "2024-08-25T01:19:35Z")

</div>

Oh that’s SUPER helpful … and could be the reason? At the very least, it’s a typo that should be corrected.
