Once again, ask vue about browser compatibility.

after working on babel-polyfill all afternoon, I finally compiled and passed, but I reported an error
on ie. The error message is as follows

.

clipboard.png

clipboard.png

main.js Code:

import "babel-polyfill"
import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import store from "./store"
import iView from "iview"
import * as filters from "./filters/index"
import "iview/dist/styles/iview.css"
import "@/my-theme/index.less"
import "@/assets/css/iconfont.css"
import "@/assets/css/common.less"

Vue.config.productionTip = false;
Vue.use(iView);

Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("-sharpapp")

part of the code in package.json is as follows

"dependencies": {
    "axios": "^0.18.0",
    "babel-loader": "^7.1.5",
    "babel-polyfill": "^6.26.0",
    "css-loader": "^1.0.0",
    "iview": "^3.1.0",
    "jquery": "^3.3.1",
    "js-file-download": "^0.4.4",
    "moment": "^2.22.2",
    "vue": "^2.5.17",
    "vue-router": "^3.0.1",
    "vuex": "^3.0.1"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^3.0.0",
    "@vue/cli-plugin-eslint": "^3.0.0",
    "@vue/cli-service": "^3.0.0",
    "@vue/eslint-config-prettier": "^3.0.1",
    "babel-core": "^6.26.3",
    "less": "^3.8.1",
    "less-loader": "^4.1.0",
    "vue-template-compiler": "^2.5.17"
  },

the current situation is that all other browsers are normal, but under IE, this error will be reported. I read it as if it had something to do with main.js, but I looked at my main.js over and over again and found no error. I hope you Daniel can help correct it. Thank you

.
What is the version of

IE? If it is IE8 and below, the version is not supported.
take a look at this link https://blog.csdn.net/csdn_yu.


you didn't babel webpack-dev-server, did you:
{

    test: /\.js$/,
    loader: 'babel-loader',
    include: [resolve('src'), resolve('node_modules/webpack-dev-server/client')]
  },
It was only today that I solved the problem of

.
refer to it. I'm not sure it's the same as yours.
vue-cli 3.x error report in IE11

Menu