-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
最新的1.2.2版本roadhog+dva在IE11报错了 #419
Comments
没有 IE 环境,帮不了你。通常 chrome 能运行 IE 不能运行都是兼容问题,可能少了啥 polyfill 吧。 |
在用0.6.0版本的时候,是报过Promise未定义,然后我引用了es6-promise,使用redux-logger中间件的时候会报一个没有assign属性,然后我把这个中间件注释掉,在IE上就能显示了,就是无法使用sass,升级到1.2.2之后,ie就报错了,页面也无法访问,而且是const app = dva()开始就报错了,后面没有执行到 |
可能少了 |
楼主解决了么 我也遇到这个问题 不止从何入手 |
还没,具体错误定位不到 |
这问题就算加了 pollyfill 也解决不了 也发现在只有在development会出现问题,production能在IE运行,syntax error 里出现很多有关颜色相关的代码,初步猜测与被chalk这库影响。 |
这个问题解决了么?我也遇到了这个问题,关键是IE太不方便调试了,找不到准确的报错的点 |
如果你用的是fetch npm i promise-polyfill -S request下加如下代码 import Promise from 'promise-polyfill'
if (!window.Promise) {
window.Promise = Promise;
} |
打包出来部署到nginx中是正常的。 |
各位dalao怎么解决这个问题了? |
我引入babel-polyfill ,并放在index.js的dva前面import后,开发环境在IE11上可以正常打开。但是打包后去访问,IE则报“SCRIPT1028: 缺少标识符、字符串或数字“,发现打包后的index.js有function r(e){return e&&e.__esModule?e:{default:e}}。default是IE的关键字,没有转成‘default’。请问在哪里配置下,可以把IE关键字转换下 |
@476474988 我也遇到相同的问题,请问如何解决的呢? |
在index.html中添加 |
Environment(required) | 环境(必填)
What did you do? Please provide steps to re-produce your problem.(请提供复现步骤)
使用了es6-promise转换Promise
使用dva+roadhog+sass,一开始使用0.6.0版本roadhog,可以在IE上显示,由于还不支持sass,所以样式失效,升级到1.2.2版本,在chrome上正常显示(样式也成功),但是在IE11(及以下)上运行,报出:SCRIPT1002: 语法错误
What do you expected?(预期的正常效果)
在IE11上应和chrome上一样正常显示,不报错
What happen?(发生了何种非正常现象)
IE11下无法显示页面,并报错:SCRIPT1002: 语法错误
Re-producible online demo (可复现的在线demo)
---index.js---
The text was updated successfully, but these errors were encountered: