Home >Web Front-end >JS Tutorial >How to solve the error reporting problem on VUEX compatible IE (detailed tutorial)

How to solve the error reporting problem on VUEX compatible IE (detailed tutorial)

亚连
亚连Original
2018-06-02 11:42:342665browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn