IE报vuex requires a Promise polyfill in this browser问题解决

发布时间:2019-08-09 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了IE报vuex requires a Promise polyfill in this browser问题解决脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

解决方法
第一步: 安装 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'

}
}

脚本宝典总结

以上是脚本宝典为你收集整理的IE报vuex requires a Promise polyfill in this browser问题解决全部内容,希望文章能够帮你解决IE报vuex requires a Promise polyfill in this browser问题解决所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。