react-redux-starter-kit 使用npm run deploy:prod 在ios8、safari、部分Android机上不显示的问题

1.运行的环境为:npm run deploy:prod 时出错,页面显示白屏,提示Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.

2.使用npm run compile运行,在ios8和所有的Android机上没有问题



总结解决方法:

https://github.com/davezuko/react-redux-starter-kit/issues/785
http://stackoverflow.com/questions/33828840/symbol-is-undefined-in-ie-after-using-babel
https://github.com/creatorkuang/react-redux-starter-kit/commit/dcb1c88c03d65b79c8ec70d63d2ef3e2236ffa84

1.页面引用
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.15/browser-polyfill.min.js"></script>

并没有解决我的问题

2.在main.js中添加
import 'babel-polyfill';

也没有解决我的问题

3.在config/index.js中添加
'babel-polyfill',

最终是这个样子:

compiler_vendor : [
    'babel-polyfill',
    'history',
    'react',
    'react-redux',
    'react-router',
    'react-router-redux',
    'redux'
  ],

解决了我的问题

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值