# JS Error | Cannot read properties of undefined (reading 'key') - while creating Select

**URL:** <https://community.dynatrace.com/t/js-error-cannot-read-properties-of-undefined-reading-key-while-creating-select/40876>\
**Category:** Developer Q&A Forum\
**Created:** [July 26, 2023, 9:44am UTC](https://community.dynatrace.com/t/js-error-cannot-read-properties-of-undefined-reading-key-while-creating-select/40876 "2023-07-26T09:44:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [July 26, 2023, 9:44am UTC](https://community.dynatrace.com/t/js-error-cannot-read-properties-of-undefined-reading-key-while-creating-select/40876/1 "2023-07-26T09:44:19Z")

</div>

Hi there,

I’m trying to create a basic select using the documentation page available on the developer portal.

For example:

 ![michiel_otten_0-1690362700296.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/1/71fba5109d6b97d44b597ad42779435480fa0955.png)

While executing this, the following error is shown:

 ![michiel_otten_4-1690364634290.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/e/ce7f3351e91062d6b9fa30db6a40504fbd04cd36.png)

Is also tried, without any success..

 ![michiel_otten_3-1690364464366.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/7/874f91ded7f32355dddfab38efa1dfe9397f4ec7.png)

Does anybody also encountered this issue. If so: where is my error?

Kind regards,

Michiel

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [July 26, 2023, 11:29am UTC](https://community.dynatrace.com/t/js-error-cannot-read-properties-of-undefined-reading-key-while-creating-select/40876/2 "2023-07-26T11:29:42Z")

</div>

Hi&nbsp;[@michiel\_otten](https://community.dynatrace.com/user/4669)&nbsp;,

this issue should be fixed in the latest version 0.99.3 of&nbsp;`@dynatrace/strato-components-preview`.

Are you already on this version? If not then please update your dependencies by executing `npm run update`.

---

<div class="post-metadata">

**Author:** ![michiel\_otten](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michiel_otten/32/21987_2.png) [@michiel\_otten](https://community.dynatrace.com/u/michiel_otten)\
**Post date:** [July 26, 2023, 12:42pm UTC](https://community.dynatrace.com/t/js-error-cannot-read-properties-of-undefined-reading-key-while-creating-select/40876/3 "2023-07-26T12:42:35Z")

</div>

Thanks&nbsp;[@stefan\_eggersto](https://community.dynatrace.com/user/9516)&nbsp;, this worked for me!  
Another question is: where could I’ve found the solution myself? Is there some sort of changelog?

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [July 26, 2023, 12:51pm UTC](https://community.dynatrace.com/t/js-error-cannot-read-properties-of-undefined-reading-key-while-creating-select/40876/4 "2023-07-26T12:51:48Z")

</div>

You can find a changelog at&nbsp;[https://developer.dynatrace.com/whats-new/release-notes/design-system-preview-changelog](https://developer.dynatrace.com/whats-new/release-notes/design-system-preview-changelog/), however this particular issue was unfortunately not clearly described.
