# Can't compile @elastic/apm-rum-angular with ivy

**URL:** <https://discuss.elastic.co/t/cant-compile-elastic-apm-rum-angular-with-ivy/245590>\
**Category:** APM\
**Tags:** rum\
**Created:** [August 19, 2020, 11:33am UTC](https://discuss.elastic.co/t/cant-compile-elastic-apm-rum-angular-with-ivy/245590 "2020-08-19T11:33:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suikast42](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suikast42/32/29865_2.png) [@suikast42](https://discuss.elastic.co/u/suikast42)\
**Post date:** [August 19, 2020, 11:33am UTC](https://discuss.elastic.co/t/cant-compile-elastic-apm-rum-angular-with-ivy/245590/1 "2020-08-19T11:33:34Z")

</div>

If Ivy is enabled with the agular rum agent then you will got an errror

```auto
Error in src/main.ts
Cannot read property '0' of undefined

```

I create a [sample project](https://stackblitz.com/edit/angular-ivy-2ecqcf) that demonstrates this behaviour.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 9, 2020, 7:33am UTC](https://discuss.elastic.co/t/cant-compile-elastic-apm-rum-angular-with-ivy/245590/2 "2020-09-09T07:33:41Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
