IE报vuex requires a Promise polyfill in this browser问题解决
2018-05-04 10:34
507 查看
使用Vuex, IE浏览器报错
因为使用了 ES6 中用来传递异步消息的的Promise,而IE低版本的浏览器不支持。
解决方法
第一步: 安装 babel-polyfill 。 babel-polyfill可以模拟ES6使用的环境,可以使用ES6的所有新方法
npm install babel-polyfill --save
第二步: build/webpack.base.conf.js文件中,使用 "babel-polyfill"
module.exports = { entry: { app: ["babel-polyfill", "./src/main.js"] }, }
替换
module.exports = { entry: { app: './src/main.js' } }
相关文章推荐
- IE报vuex requires a Promise polyfill in this browser问题解决
- 【vuex】【vue】【兼容】IE报vuex requires a Promise polyfill in this browser问题解决
- vue.js之路(5)——解决vuex requires a Promise polyfill in this browser问题
- IE浏览器报Promise未定义的错误、解决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”错误
- 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
- vue做的项目在ie11下一片空白:vue requires a Promise pllyfill in this browser
- This file is already open in an editor问题的解决方法
- Intel HAXM is required to run this AVD,VT-x is disabled in BIOS”问题解决
- 解决Vue+Element ui开发中碰到的IE问题
- 解决vue.js this.$router.push无效的问题
- vue学习:解决Apycharm的 * is only available in ES6(use 'esversion: 6') 问题
- 解决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” 问题解决
- 【QA4】【sudoers问题解决】(*** is not in the sudoers file.This incident will be reported)