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
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
.