加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

react-redux-starter-kit 使用npm run deploy:prod 在ios8、safa

发布时间:2020-12-15 03:29:55 所属栏目:百科 来源:网络整理
导读: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和

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'
  ],

解决了我的问题

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读