# How to bring in enums from a dependency in an extension

**URL:** <https://forum.makecode.com/t/how-to-bring-in-enums-from-a-dependency-in-an-extension/3068>\
**Category:** micro:bit\
**Created:** [August 10, 2020, 12:42pm UTC](https://forum.makecode.com/t/how-to-bring-in-enums-from-a-dependency-in-an-extension/3068 "2020-08-10T12:42:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlasdairAtKitronik](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@AlasdairAtKitronik](https://forum.makecode.com/u/AlasdairAtKitronik)\
**Post date:** [August 10, 2020, 12:42pm UTC](https://forum.makecode.com/t/how-to-bring-in-enums-from-a-dependency-in-an-extension/3068/1 "2020-08-10T12:42:54Z")

</div>

I’ve got an extension which has several other dependencies which we have also authored. Some of the blocks have drop-downs, and it would be useful to define the drop-down list enums in their appropriate dependencies, however, this doesn’t seem to happen consistently. Often the drop-down box in the block is just empty, nothing there at all. Is there a way to properly use enums from a dependency in a main extension?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [August 10, 2020, 2:26pm UTC](https://forum.makecode.com/t/how-to-bring-in-enums-from-a-dependency-in-an-extension/3068/2 "2020-08-10T14:26:02Z")

</div>

Do you have a repro?

---

<div class="post-metadata">

**Author:** ![AlasdairAtKitronik](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@AlasdairAtKitronik](https://forum.makecode.com/u/AlasdairAtKitronik)\
**Post date:** [August 10, 2020, 2:32pm UTC](https://forum.makecode.com/t/how-to-bring-in-enums-from-a-dependency-in-an-extension/3068/3 "2020-08-10T14:32:41Z")

</div>

![ec_board_enum_issue_1](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e645c0b4e863f23218ad098e02a3337dde863ef8.png) ![ec_board_enum_issue_2](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/ae0c1c21f8c0b0e92f91c35d782c7da36c699195.png) ![ec_board_enum_issue_3](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/451517a468c5b8f7b3451791ec4046411541e8e0.png)

---

<div class="post-metadata">

**Author:** ![AlasdairAtKitronik](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@AlasdairAtKitronik](https://forum.makecode.com/u/AlasdairAtKitronik)\
**Post date:** [August 10, 2020, 2:33pm UTC](https://forum.makecode.com/t/how-to-bring-in-enums-from-a-dependency-in-an-extension/3068/4 "2020-08-10T14:33:35Z")

</div>

They start out being available and useable, but if the page is refreshed, or after a few minutes using the extension, they disappear, as in picture 3.
