IE报vuex requires a Promise polyfill in this browser问题解决
来源:互联网 发布:timeedit控件优化 编辑:程序博客网 时间:2024/06/07 12:01
使用Vuex, IE浏览器报错
因为使用了 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上的报错问题
- C#生成txt文件,并将数据写入进去
- C++快速判断二进制某位是1或0
- CSS 代码组织和管理规范BEM,OOCSS,SMACSS,ACSS
- 《深度学习Ng》课程学习笔记01week4——深层神经网络
- HTML5新标签
- IE报vuex requires a Promise polyfill in this browser问题解决
- Vim使用总结
- Java网络编程
- mybatis-generator自动生成代码插件使用详解
- 一些常用的资料链接
- header("Content-type:text/html;charset=utf-8")含义
- 问题集锦001
- 编写高质量代码改善Java程序的151个建议--总结摘抄
- 数据结构 第2讲 算法复杂性