IE报vuex requires a Promise polyfill in this browser问题解决
来源:互联网 发布:将icloud照片导入mac 编辑:程序博客网 时间:2024/06/05 10:28
因为使用了 ES6 中用来传递异步消息的的Promise,而IE低版本的浏览器不支持。
解决方法
第一步: 安装 babel-polyfill 。 babel-polyfill可以模拟ES6使用的环境,可以使用ES6的所有新方法
npm install --save babel-polyfill
第二步: 在 Webpack/Browserify/Node中使用
在webpack.config.js文件中,使用
module.exports = { entry: { app: ["babel-polyfill", "./src/main.js"] }};
替换
module.exports = { entry: { app: './src/main.js' }}
参考文档:
1:使用ES6的浏览器兼容性问题。 https://segmentfault.com/a/1190000005128101
2: vuex requires a Promise polyfill in this browser http://www.jianshu.com/p/3e3b171179f8
转载:http://www.cnblogs.com/weiqinl/p/6794612.html
阅读全文
0 0
- IE报vuex requires a Promise polyfill in this browser问题解决
- IE报vuex requires a Promise polyfill in this browser问题解决
- IE报vuex requires a Promise polyfill in this browser问题解决
- VUE 报 Error: [vuex] vuex requires a Promise polyfill in this browser.
- vuex requires a Promise polyfill in this browser
- Vuex requires a Promise polyfill in this browser
- 解决“requires a Promise polyfill in this browser”错误
- 解决“requires a Promise polyfill in this browser”错误
- vue.js之路(5)——解决vuex requires a Promise polyfill in this browser问题
- 实现一个Promise-polyfill
- 解决Vuex, IE浏览器报错
- 使用Vuex, IE浏览器报错
- java.sql.SQLException: QueryRunner requires a DataSource to be invoked in this way, or a Connection
- java.sql.SQLException: QueryRunner requires a DataSource to be invoked in this way, or a Connection
- DosBox 报错 this program requires dosxnt.exe to be in your path
- mysql用CATS方式备份数据报This table type requires a primary key错误
- A Markdown implement in browser
- VUEX兼容IE上的报错问题
- 23种设计模式(1):单例模式
- Android自定义View资料
- centos下安装python2.7.1 以及装完后 yum 不能用的问题
- 理解angular双向绑定示意图
- @Autowired与@Resource的区别
- IE报vuex requires a Promise polyfill in this browser问题解决
- windows64位环境下安装pymssql模块
- 使用jquery.qrcode生成二维码
- android wifi开发(二)
- datatable插件应用于tab切换出现表头错位问题
- windows下Mysql批量备份多个表
- 1065. 单身狗(25) PAT
- MD5加密解密代码
- 定位内核模块crash的方法