# @elastic/apm-rum-angular Integration with Angular 16 Not Working

**URL:** <https://discuss.elastic.co/t/elastic-apm-rum-angular-integration-with-angular-16-not-working/333819>\
**Category:** Elastic Agent\
**Created:** [May 18, 2023, 9:37pm UTC](https://discuss.elastic.co/t/elastic-apm-rum-angular-integration-with-angular-16-not-working/333819 "2023-05-18T21:37:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tucker\_Schell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tucker_schell/32/119734_2.png) [@Tucker\_Schell](https://discuss.elastic.co/u/Tucker_Schell)\
**Post date:** [May 18, 2023, 9:37pm UTC](https://discuss.elastic.co/t/elastic-apm-rum-angular-integration-with-angular-16-not-working/333819/1 "2023-05-18T21:37:46Z")

</div>

Hi, two weeks ago I integrated the apm-rum-angular package (2.1.7) in an Angular 15 application by following this doc and it worked just fine:

> **[Angular integration | APM Real User Monitoring JavaScript Agent Reference...](https://www.elastic.co/guide/en/apm/agent/rum-js/5.x/angular-integration.html)**

Today, I updated Angular to 16 and now I get the following error:

'ApmModule' does not appear to be an NgModule class.

This likely means that the library (@elastic/apm-rum-angular) which declares ApmModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

 ![ApmRumAngularError](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efdcf914d143848d5225236e6cd0cbbb28faa197.png)

Could you please refer me to some relevant documentation I may have missed or reply with any plans of supporting Angular 16?

Thank you

---

<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:** [June 15, 2023, 9:38pm UTC](https://discuss.elastic.co/t/elastic-apm-rum-angular-integration-with-angular-16-not-working/333819/2 "2023-06-15T21:38:04Z")

</div>

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