SoFunction
Updated on 2025-04-05

Solve the error problem on VUEX compatible IE

During the process of using Vuex on IE, the following error occurs:

SCRIPT5022: [vuex] vuex requires a Promise polyfill in this browser. 

Solution:

1. Install babel-polyfill first

npm install --save-dev babel-polyfill

2. Modify the file

entry: {
  'babel-polyfill': 'babel-polyfill',
  app: './src/'
 }

The above article solves the error problem of VUEX compatible IE is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.