问题:Vue项目开发环境中在IE11正常运行,打包之后发布上线在IE11中报Promise 未定义
1.重要
:确保webpack是2.6.1的版本,如果不是在package.json将webpack修改为”webpack”: “2.6.1”
I had this issue even with adding babel-polyfill, because of a bug with webpack 2.6.0. Upgrading to 2.6.1 solved the issue.
(由于webpack 2.6.0存在错误,即使添加了babel-polyfill,我也遇到了这个问题。 升级到2.6.1解决了这个问题。)
package.json
{
"name": "coreui-vue",
"version": "1.0.0-alpha.6",
"description": "Open Source Admin Template",
"author": "Łukasz Holeczek <lukasz@holeczek.pl>",
"private": true,
"scripts": {
"dev": "node build/dev-server.js",
"start": "node build/dev-server.js",
"build": "node build/build.js",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs"
},
"dependencies": {
"axios": "^0.17.1",
"babel-polyfill": "^6.26.0",
"babel-runtime": "^6.26.0",
"chart.js": "2.5.0",
"echarts": "^4.1.0",
"ele