IE报vuex requires a Promise polyfill in this browser问题解决
来源:互联网 发布:mysql直接复制数据文件 编辑:程序博客网 时间:2024/05/23 07:24
使用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
阅读全文
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上的报错问题
- JVM中的垃圾收集策略
- 实例
- java Queue 接口
- Android 内存泄漏场景分析
- PullToRefresh
- IE报vuex requires a Promise polyfill in this browser问题解决
- CCF 201612-1 中间数
- 【ES6】声明(declare)
- Batch Norm
- icy 框架介绍(开源)
- 引入swagger(2)——与spring-boot整合
- 【转载】你真的会用Retrofit2吗?Retrofit2完全教程
- Laravel 5.x Windows 安装过程以及遇到的坑
- gstreamer的安装与测试