Vuex requires a Promise polyfill in this browser

因为使用了ES6 Promise,而IE浏览器不支持
解决方法:
npm install --save-dev babel-polyfill
如果使用vue-cli 及webpack,在webpack.config.js中加入:
entry: {app: ['babel-polyfill', './src/main.js']}
Vuex requires a Promise polyfill in this browser :http://www.jianshu.com/p/3e3b171179f8
使用 ES6 的浏览器兼容性问题:https://segmentfault.com/a/1190000005128101
本文介绍了解决在Internet Explorer浏览器上使用Vuex时遇到的Promise不兼容问题的方法。通过引入babel-polyfill,可以确保ES6 Promise在不支持的浏览器中正常工作。文章还提供了在使用vue-cli和webpack时的具体配置步骤。
6217

被折叠的 条评论
为什么被折叠?



