IE报vuex requires a Promise polyfill in this browser问题解决
2017-06-14 10:17
741 查看
因为使用了 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/11900000051281012: vuex requires a Promise polyfill in this browser http://www.jianshu.com/p/3e3b171179f8
转载:http://www.cnblogs.com/weiqinl/p/6794612.html
相关文章推荐
- 【vuex】【vue】【兼容】IE报vuex requires a Promise polyfill in this browser问题解决
- IE报vuex requires a Promise polyfill in this browser问题解决
- IE浏览器报Promise未定义的错误、解决vuex requires a Promise polyfill in this browser问题
- vue.js之路(5)——解决vuex requires a Promise polyfill in this browser问题
- Vue-cli 在IE下[vuex] vuex requires a Promise polyfill in this browser.问题
- Error: [vuex] vuex requires a Promise polyfill in this browser. 与 babel-polyfill 的问题
- 解决“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
- vuex requires a Promise polyfill in this browser
- vue做的项目在ie11下一片空白:vue requires a Promise pllyfill in this browser
- This Android SDK requires Android Developer Toolkit version 23.0.0 or above问题解决方案
- string was not declared in this scope问题解决方法
- This file is already open in an editor问题的解决方法
- 解决eclipse出现This Android SDK requires Andro...date ADT to the latest version.问题
- “this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot” 问题解决
- WPF部署问题 解决:The application requires that the assembly...be installed in the GAC
- 移动表格行 解决低版本IE fadeIn fadeOut 失效问题