react-redux-starter-kit 使用npm run deploy:prod 在ios8、safa
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 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'
],
解决了我的问题 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |