# Bug in deprecated.js not compiling

**URL:** https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687
**Category:** Bug
**Created:** [2016年九月26日 21:01 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687 "2016-09-26T21:01:52Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mbeale](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mbeale](https://meta.discourse.org/u/mbeale)
#### Post date: [2016年九月26日 21:01 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/1 "2016-09-26T21:01:52Z")

</div>

Users using IE10 (they’re not able to upgrade to IE11) see a blank screen after login.

It looks like ‘const’ on line 5 of assets/javascripts/deprecated.js is not being compiled/isn’t ES6.

I’m not sure how to fix, so submitting this bug note vs a PR. Am new to Discourse, so let me know if I should be doing things differently.

Thanks!

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2016年九月26日 21:11 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/2 "2016-09-26T21:11:44Z")

</div>

I don’t know how best to handle your situation.

> **[What is Discourse?](https://www.discourse.org/faq)**
>
> Discourse is the 100% open source discussion platform built for the next decade of the Internet.

> What are the minimum browser requirements?  
> Discourse is designed for the next 10 years of the Internet, so the minimum browser requirements are high:

> Internet Explorer 11+  
> Google Chrome 24+  
> Firefox 14+  
> Safari 6.1+

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年九月26日 21:16 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/3 "2016-09-26T21:16:00Z")

</div>

IE10 is dead as of January this year, not supported by Microsoft.

---

<div class="post-metadata">

### Author: ![mbeale](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mbeale](https://meta.discourse.org/u/mbeale)
#### Post date: [2016年九月26日 21:16 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/4 "2016-09-26T21:16:33Z")

</div>

it looks like all the other files are ES6, so backward compatible. would changing the extension of deprecated.js take care of it?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年九月26日 21:18 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/5 "2016-09-26T21:18:21Z")

</div>

Oh I see the problem is IE10 users aren’t seeing the error message right? Let me try to repro.

---

<div class="post-metadata">

### Author: ![mbeale](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mbeale](https://meta.discourse.org/u/mbeale)
#### Post date: [2016年九月26日 21:22 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/6 "2016-09-26T21:22:38Z")

</div>

Thanks! Yeah, they just see a blank screen.  
But grepping shows this is the only `const` not getting compiled, so I think it’d work if we were able to change that.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年九月26日 21:45 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/7 "2016-09-26T21:45:18Z")

</div>

[https://github.com/discourse/discourse/pull/4464](https://github.com/discourse/discourse/pull/4464)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年十月21日 05:22 UTC](https://meta.discourse.org/t/bug-in-deprecated-js-not-compiling/50687/8 "2016-10-21T05:22:58Z")

</div>


