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'
],
解决了我的问题