Bug in deprecated.js not compiling

AI-generated summary

Users with Internet Explorer 10 (IE10) are experiencing a blank screen after login due to a compatibility issue in deprecated.js. mbeale identified that the use of const on line 5 is not being compiled and is likely the cause. mbeale suggested changing the extension of deprecated.js to resolve the issue. Falco attempted to reproduce the problem and later shared a related GitHub pull request (Falco). According to Mittineague, IE10 is below the minimum browser requirements for Discourse, and Falco noted that IE10 is no longer supported by Microsoft.

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!

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

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+

2 Mi Piace

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

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

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

1 Mi Piace

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.

1 Mi Piace

https://github.com/discourse/discourse/pull/4464

3 Mi Piace