Home >Web Front-end >JS Tutorial >How to solve the error reporting problem on VUEX compatible IE (detailed tutorial)
Below I will share with you an article to solve the error reporting problem on VUEX compatible IE. It has a good reference value and I hope it will be helpful to everyone.
When using Vuex on IE, the following error occurs:
SCRIPT5022: [vuex] vuex requires a Promise polyfill in this browser.
Solution:
1. First install babel-polyfill
npm install --save-dev babel-polyfill
2. Modify the file under webpack.base.config.js
entry: { 'babel-polyfill': 'babel-polyfill', app: './src/main.js' }
The above is what I compiled for you. I hope it will be helpful to everyone in the future.
Related articles:
js experience sharing JavaScript anti-debugging skills
Using node.js to package webpack
How to use external module in webpack
The above is the detailed content of How to solve the error reporting problem on VUEX compatible IE (detailed tutorial). For more information, please follow other related articles on the PHP Chinese website!