# Type 'Image\[\]' error

**URL:** https://forum.makecode.com/t/type-image-error/36973
**Category:** Help
**Tags:** game
**Created:** [May 29, 2025, 12:06am UTC](https://forum.makecode.com/t/type-image-error/36973 "2025-05-29T00:06:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Potion88Brewer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/potion88brewer/32/22690_2.png) [@Potion88Brewer](https://forum.makecode.com/u/Potion88Brewer)
#### Post date: [May 29, 2025, 12:06am UTC](https://forum.makecode.com/t/type-image-error/36973/1 "2025-05-29T00:06:27Z")

</div>

Help! I have an error "Type ‘Image’ is not assignable to type ‘Image’. Property ‘drawIcon’ is missing in type ‘image’. How to fix this?

 ![Screenshot 2025-05-28 143253](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/3/93199bb1bebde43d2c9b8dcda4b45a5153b8f181.png)

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [May 29, 2025, 4:22pm UTC](https://forum.makecode.com/t/type-image-error/36973/2 "2025-05-29T16:22:16Z")

</div>

Makecode thinks that your “nonPrime” variable is for holding image data, not for holding image _ **array** _ data. You are probably setting this variable to be a single image somewhere else in your code. It should always be an _array_ of images, and nothing else.
