# Project migration, now I have Reflect.getOwnMetadata bug

**URL:** <https://discourse.aurelia.io/t/project-migration-now-i-have-reflect-getownmetadata-bug/3526>\
**Category:** Uncategorized\
**Created:** [May 29, 2020, 4:31pm UTC](https://discourse.aurelia.io/t/project-migration-now-i-have-reflect-getownmetadata-bug/3526 "2020-05-29T16:31:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 29, 2020, 4:31pm UTC](https://discourse.aurelia.io/t/project-migration-now-i-have-reflect-getownmetadata-bug/3526/1 "2020-05-29T16:31:23Z")

</div>

Hello, I hope someone can assist. I’m in the process of migrating my project into a yarn workspace. I searched for this issue and the only hits seemed to be related to ensuring typescript was set to target ES6.

As soon as I try to load the application in the browser I’m getting the Reflect.getOwnMetadata is not a function.

My Typescript config is set to target ES6 and module is ESNext. I have another application already in the yarn workspace with similar configuration and all is good.

Update. It seems that by adding reflect-metatdata to my project and then including it on my main.ts that it works. I’m still confused

---

<div class="post-metadata">

**Author:** ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)\
**Post date:** [May 29, 2020, 7:49pm UTC](https://discourse.aurelia.io/t/project-migration-now-i-have-reflect-getownmetadata-bug/3526/2 "2020-05-29T19:49:22Z")

</div>

aurelia-bootstrapper supposes to load aurelia-polyfill which has that reflect thing.

Somewhere messed up in the booting up?

---

<div class="post-metadata">

**Author:** ![elitemike](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/elitemike/32/690_2.png) [@elitemike](https://discourse.aurelia.io/u/elitemike)\
**Post date:** [May 30, 2020, 11:34am UTC](https://discourse.aurelia.io/t/project-migration-now-i-have-reflect-getownmetadata-bug/3526/3 "2020-05-30T11:34:47Z")

</div>

I’ll revisit it on Monday as I still haven’t gotten the project loading up yet. I got past the reflect issue though.
