# APM Angular Application IE 11 Error

**URL:** <https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762>\
**Category:** APM\
**Tags:** rum\
**Created:** [May 20, 2019, 8:07am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762 "2019-05-20T08:07:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neil\_Steventon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neil_steventon/32/46454_2.png) [@Neil\_Steventon](https://discuss.elastic.co/u/Neil_Steventon)\
**Post date:** [May 20, 2019, 8:07am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/1 "2019-05-20T08:07:05Z")

</div>

I current have APM running in my application but was alerted to it not working in IE11 ( Chrome as usual works great).

I was wondering if there are different steps to install the APM package. I get the followign error with internet explorer.

```
File: vendor.js, Line: 104194, Column: 7

```

The sanitizeString seems to be the offending line;

```
const throttle = __webpack_require__ (/*! ./throttle */ "./node_modules/@elastic/apm-rum-core/src/common/throttle.js")
const { sanitizeString } = __webpack_require__ (/*! ./utils */ "./node_modules/@elastic/apm-rum-core/src/common/utils.js")

```

Ive tried using the script tag method way and have also injected the APM code in as a service to see if it works. All is great in browsers other than IE 11.

Any help appreciated on what can be done.

Cheers

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [May 20, 2019, 10:44am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/2 "2019-05-20T10:44:00Z")

</div>

> [@Neil\_Steventon](#):
>
> Ive tried using the script tag method way and have also injected the APM code in as a service to see if it works. All is great in browsers other than IE 11.

Hi Neil,

Thanks for reporting the issue.  
We are currently refactoring this part of the code.  
To help us reproduce the bug, would you please paste the full error message here?

Cheers,  
Hamid

---

<div class="post-metadata">

**Author:** ![Neil\_Steventon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neil_steventon/32/46454_2.png) [@Neil\_Steventon](https://discuss.elastic.co/u/Neil_Steventon)\
**Post date:** [May 20, 2019, 1:22pm UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/3 "2019-05-20T13:22:08Z")

</div>

Thanks for quick response, the error is as follows;

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/4/444f607842029008d2c0a4de97d16a2e64de681b.png)

Vendor.js line from error

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/9/695bf4fc166f0a16822300f400317f29d0f76c0d.png)

offending line being ;

```
const { sanitizeString } = __webpack_require__ (/*! ./utils */ "./node_modules/@elastic/apm-rum-core/src/common/utils.js")
```

---

<div class="post-metadata">

**Author:** ![Neil\_Steventon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neil_steventon/32/46454_2.png) [@Neil\_Steventon](https://discuss.elastic.co/u/Neil_Steventon)\
**Post date:** [June 10, 2019, 4:32am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/4 "2019-06-10T04:32:52Z")

</div>

Just wondering if theres an update on supporting IE 11 ?

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [June 11, 2019, 11:48am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/5 "2019-06-11T11:48:05Z")

</div>

Hi @Neil_Steventon,

Sorry about the slow response.  
Using the the RUM agent in IE11 is supported, we already have tests running on IE11, e.g. [this one](https://github.com/elastic/apm-agent-rum-js/blob/master/packages/rum/test/e2e/standalone-html/index.html).

It seems that the issue might be related to your bundling configuration.  
Would you please provide your webpack and babel configuration?

Cheers,  
Hamid

---

<div class="post-metadata">

**Author:** ![Neil\_Steventon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neil_steventon/32/46454_2.png) [@Neil\_Steventon](https://discuss.elastic.co/u/Neil_Steventon)\
**Post date:** [June 18, 2019, 7:04am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/6 "2019-06-18T07:04:20Z")

</div>

Thanks, I have been back on the project and realise that the error in IE11 is due to the class keyword. Im using Angular 5 and was wondering do you use babel to convert the npm module down. I curent use webpack , no current conversion settings but im thinking thats the way to go ?

---

<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:** [July 9, 2019, 3:04am UTC](https://discuss.elastic.co/t/apm-angular-application-ie-11-error/181762/7 "2019-07-09T03:04:21Z")

</div>

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