babel / website

:globe_with_meridians: The Babel documentation website
https://babeljs.io/docs/en/index.html
MIT License
753 stars 1.32k forks source link

"Try it out" not working on IE11 #1627

Open darkylmnx opened 6 years ago

darkylmnx commented 6 years ago

On the website, the page "try it out" does not work on IE11

http://babeljs.io/repl/

image

xtuc commented 6 years ago

Yeah Promise is not available on IE11. We should probably use babel-preset-env, and more likely on the new website.

hzoo commented 6 years ago

Same issue as https://github.com/babel/babel/issues/7607 I believe, we aren't using transform runtime with babel-standalone or we should add babel-polyfill to the site.

RusinovAnton commented 6 years ago

I'm currently working on the fix. Its pretty trivial for the old site but in the new site there is another error arise:

Object doesn't support property or method 'forEach'

Which is forEach method of NodeList.
The work on polyfill for this is in progress: https://github.com/zloirock/core-js/pull/325

UPD: Its being used for code block buttons and doesn't actually break REPL page.

hzoo commented 6 years ago

Should be ok

CoeJoder commented 5 years ago

Does not work; getting same error. IE 11.

ghost commented 5 years ago

Try it out doesn't work, I get the same error in Chrome Canary Version 74.0.3698.0 (Official Build) canary (64-bit) and Chrome Version 72.0.3626.96 (Official Build) (64-bit)

TrevorBurnham commented 4 years ago

I believe this issue should be reopened. Currently, loading the "Try it out" page in IE11 yields a blank page (apart from the header) and these console errors:

Screen Shot 2019-11-27 at 9 41 42 AM