# Using interfaces in DI broken in 2.0.0-alpha.30

**URL:** <https://discourse.aurelia.io/t/using-interfaces-in-di-broken-in-2-0-0-alpha-30/4763>\
**Category:** vNext\
**Created:** [May 11, 2022, 8:52am UTC](https://discourse.aurelia.io/t/using-interfaces-in-di-broken-in-2-0-0-alpha-30/4763 "2022-05-11T08:52:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeko77](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zeko77/32/2258_2.png) [@zeko77](https://discourse.aurelia.io/u/zeko77)\
**Post date:** [May 11, 2022, 8:52am UTC](https://discourse.aurelia.io/t/using-interfaces-in-di-broken-in-2-0-0-alpha-30/4763/1 "2022-05-11T08:52:07Z")

</div>

After the update, following code fails with an error:  
TS2554: Expected 1 arguments, but got 0.

```auto
import { IEventAggregator } from 'aurelia';
export class MyApp {
	constructor(
		@IEventAggregator private ea: IEventAggregator
	) {

	}
}

```

---

<div class="post-metadata">

**Author:** ![Alexander-Taran](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/alexander-taran/32/2308_2.png) [@Alexander-Taran](https://discourse.aurelia.io/u/Alexander-Taran)\
**Post date:** [May 31, 2022, 2:26pm UTC](https://discourse.aurelia.io/t/using-interfaces-in-di-broken-in-2-0-0-alpha-30/4763/2 "2022-05-31T14:26:51Z")

</div>

Is it still broken for you in alpha.33 ?

---

<div class="post-metadata">

**Author:** ![zeko77](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/zeko77/32/2258_2.png) [@zeko77](https://discourse.aurelia.io/u/zeko77)\
**Post date:** [June 1, 2022, 8:58am UTC](https://discourse.aurelia.io/t/using-interfaces-in-di-broken-in-2-0-0-alpha-30/4763/3 "2022-06-01T08:58:49Z")

</div>

It is fixed. It works for sure in alpha.32.
