Type 'Image[]' error

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

1 Like

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.