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)

亚连
Release: 2018-06-02 11:42:34
Original
2675 people have browsed it

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.
Copy after login

Solution:

1. First install babel-polyfill

npm install --save-dev babel-polyfill
Copy after login

2. Modify the file under webpack.base.config.js

entry: {
  'babel-polyfill': 'babel-polyfill',
  app: './src/main.js'
 }
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template