Ant-design-pro: 0.2.2 throw error in IE11

Created on 16 Nov 2017  ·  27Comments  ·  Source: ant-design/ant-design-pro

image
提示语法错误,页面显示空白。

🛑 bug

Most helpful comment

ie语法错误,是roadhog的问题 roadhog 1.2.2 在开发环境下js文件中有非业务代码的箭头函数导致IE浏览器报语法错误 ,先自己本地改node_modules里的东西,等roadhog更新。。

All 27 comments

14_47_30__11_22_2017

缺少 Promise 的 polyfill。

20171122150558

缺少 es6-shim

Edge 为啥会需要 es6-shim

这是 11 😅

https://github.com/sorrycc/roadhog/issues/419 加了 polyfill 还是报错。

polyfill 我直接用 <script /> 引入 es6-promise 好像没问题。

现在报的是 React 的渲染问题,本地 IE11 下依然没法看,所以比较难排查。

应该是某个页面 React 的渲染问题?我引入 es6-promise 后看了下大部分页面都是好的。

image

你本地 IE11 可以调试?

可以啊,虚拟机。

见鬼了,明天来看看。

还有加了 babel-polyfill 的话其他 polyfill 就不需要了吧。

http://preview.pro.ant.design/ 在 IE 11 下已经可用,调试环境的问题还在解决。

https://github.com/sorrycc/roadhog/issues/497

开发环境,暂时不要用 IE 吧。。。

ie语法错误,是roadhog的问题 roadhog 1.2.2 在开发环境下js文件中有非业务代码的箭头函数导致IE浏览器报语法错误 ,先自己本地改node_modules里的东西,等roadhog更新。。

@yesmeck 开发环境看IE主要是看浏览器兼容性等问题

这个还用修吗?

pro 没啥好做的,关了吧

ok,好久了 看着难受

@babel/polyfill 引入这个还是报错

Hi, Just add inside tag in index.html

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

yjz1004 picture yjz1004  ·  3Comments

RichardStark picture RichardStark  ·  3Comments

yaoleiroyal picture yaoleiroyal  ·  3Comments

952425340 picture 952425340  ·  3Comments