ie 浏览器访问 vue 项目(使用的vuex 状态管理组件)报错:vuex requires a Promise polyfill in this browser

 

处理办法:

1.npm install --save-dev babel-polyfill

2. if you use webpack, in webpack.config.js you can replace your

module.exports = {
  entry: {
    app: './src/main.js'
  },

with

module.exports = {
  entry: {
    app: ['babel-polyfill', './src/main.js']
  },

相关文章: