- vue CLI 构建项目,在其它浏览器中显示正常,在IE11,中报错:
SCRIPT1006: 缺少 ')' app.js(6508,3)
- 报名指向位置
/***/ "./node_modules/_resize-detector@0.1.9@resize-detector/esm/index.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return addListener; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return removeListener; });\nlet raf = null;\nfunction requestAnimationFrame (callback) {\n if (!raf) {\n raf = (\n window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n function (callback) {\n return setTimeout(callback, 16)\n }\n ).bind(window);\n }\n return raf(callback)\n}\n\nle....
es6语法导致的,你是否在
static
目录下写了js代码,vue-cli的webpack配置默认是不会对static下的js转es5的确定你是不是这样写了,如果是的话修改
build/webpack.base.conf.js
中的`
{
`
在include中加入
resolve('static')
,这句话的意思就是将static中的js转es5