Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.2 throw error in IE11 #210

Closed
DingLiPlus opened this issue Nov 16, 2017 · 27 comments
Closed

0.2.2 throw error in IE11 #210

DingLiPlus opened this issue Nov 16, 2017 · 27 comments
Assignees
Labels

Comments

@DingLiPlus
Copy link

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

@afc163 afc163 changed the title 官方下载的0.2.2版本在ie11上打不开 0.2.2 throw error in IE11 Nov 16, 2017
@yesmeck
Copy link
Member

yesmeck commented Nov 22, 2017

14_47_30__11_22_2017

缺少 Promise 的 polyfill。

@yesmeck
Copy link
Member

yesmeck commented Nov 22, 2017

20171122150558

缺少 es6-shim

@afc163
Copy link
Member

afc163 commented Nov 22, 2017

Edge 为啥会需要 es6-shim

@yesmeck
Copy link
Member

yesmeck commented Nov 22, 2017

这是 11 😅

@afc163 afc163 assigned afc163 and unassigned ddcat1115 Nov 22, 2017
@afc163
Copy link
Member

afc163 commented Nov 22, 2017

sorrycc/roadhog#419 加了 polyfill 还是报错。

@afc163
Copy link
Member

afc163 commented Nov 22, 2017

dvajs/dva#1233

@afc163
Copy link
Member

afc163 commented Nov 22, 2017

@yesmeck
Copy link
Member

yesmeck commented Nov 22, 2017

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

@afc163 afc163 closed this as completed Nov 22, 2017
@afc163 afc163 reopened this Nov 22, 2017
@afc163
Copy link
Member

afc163 commented Nov 22, 2017

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

@yesmeck
Copy link
Member

yesmeck commented Nov 22, 2017

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

@afc163
Copy link
Member

afc163 commented Nov 22, 2017

image

@afc163
Copy link
Member

afc163 commented Nov 22, 2017

你本地 IE11 可以调试?

@yesmeck
Copy link
Member

yesmeck commented Nov 22, 2017

可以啊,虚拟机。

@afc163
Copy link
Member

afc163 commented Nov 22, 2017

见鬼了,明天来看看。

@yesmeck
Copy link
Member

yesmeck commented Nov 23, 2017

https://github.com/ant-design/ant-design-pro/blob/master/src/index.js#L3

polyfill 要加最前面,dva 前面。

@yesmeck
Copy link
Member

yesmeck commented Nov 23, 2017

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

afc163 added a commit that referenced this issue Nov 23, 2017
@afc163
Copy link
Member

afc163 commented Nov 23, 2017

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

sorrycc/roadhog#497

@afc163
Copy link
Member

afc163 commented Nov 23, 2017

@yesmeck
Copy link
Member

yesmeck commented Nov 23, 2017

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

@daihy8759
Copy link

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

@johnnychq
Copy link

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

@chenshuai2144
Copy link
Collaborator

这个还用修吗?

@yesmeck
Copy link
Member

yesmeck commented Apr 25, 2018

@yesmeck
Copy link
Member

yesmeck commented Apr 25, 2018

pro 没啥好做的,关了吧

@chenshuai2144
Copy link
Collaborator

ok,好久了 看着难受

@xiaohuozi500
Copy link

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

@amarbalu
Copy link

amarbalu commented Jul 5, 2019

Hi, Just add inside tag in index.html

<script src=”https://cdn.polyfill.io/v2/polyfill.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants