# dependency injection issue

**URL:** <https://discourse.aurelia.io/t/dependency-injection-issue/2789>\
**Category:** Uncategorized\
**Created:** [July 31, 2019, 5:27am UTC](https://discourse.aurelia.io/t/dependency-injection-issue/2789 "2019-07-31T05:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit715131](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@rohit715131](https://discourse.aurelia.io/u/rohit715131)\
**Post date:** [July 31, 2019, 5:27am UTC](https://discourse.aurelia.io/t/dependency-injection-issue/2789/1 "2019-07-31T05:27:29Z")

</div>

Inner Error:  
Message: key/value cannot be null or undefined. Are you trying to inject/register something that doesn’t exist with DI?  
Inner Error Stack:  
Error: key/value cannot be null or undefined. Are you trying to inject/register something that doesn’t exist with DI?

---

<div class="post-metadata">

**Author:** ![zewa666](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zewa666/32/19_2.png) [@zewa666](https://discourse.aurelia.io/u/zewa666)\
**Post date:** [July 31, 2019, 7:44am UTC](https://discourse.aurelia.io/t/dependency-injection-issue/2789/2 "2019-07-31T07:44:03Z")

</div>

can you show what inject did cause this issue? I suspect you perhaps tried to register an TypeScript Interface as key, which won’t work as it transpiles to nothing.
