当我尝试使用带有prod标志的Angular CLI(ng build --prod)构建一个角度应用程序时,我收到此错误:
来自UglifyJs的0.1cdedc40ae376a34d57e.chunk.js中的错误名称预期 [0.1cdedc40ae376a34d57e.chunk.js:7923,29]
这是tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
]
}
}
package.json依赖项:
"dependencies": {
"@angular/animations": "4.3.4",
"@angular/cdk": "^2.0.0-beta.8",
"@angular/common": "4.3.4",
"@angular/compiler": "4.3.4",
"@angular/core": "4.3.4",
"@angular/flex-layout": "2.0.0-beta.8",
"@angular/forms": "4.3.4",
"@angular/http": "4.3.4",
"@angular/material": "^2.0.0-beta.8",
"@angular/platform-browser": "4.3.4",
"@angular/platform-browser-dynamic": "4.3.4",
"@angular/router": "4.3.4",
"core-js": "2.5.0",
"moment": "2.18.1",
"mousetrap": "1.6.1",
"ng-block-ui": "1.0.0-beta.14",
"ng2-smart-table-custom": "1.2.4",
"ng2-webstorage": "1.8.0",
"rxjs": "5.4.3",
"systemjs": "0.20.17",
"tinymce": "4.6.5",
"zone.js": "0.8.16"
},
"devDependencies": {
"@angular/cli": "1.3.0",
"@angular/compiler-cli": "4.3.4",
"@angular/language-service": "4.3.4",
"@types/jasmine": "2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "8.0.20",
"codelyzer": "3.1.2",
"jasmine-core": "2.7.0",
"jasmine-spec-reporter": "~4.1.0",
"karma": "1.7.0",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"canonical-path": "0.0.2",
"karma-typescript": "3.0.4",
"karma-typescript-preprocessor": "0.3.1",
"lodash": "4.17.4",
"protractor": "~4.0.14",
"ts-node": "3.3.0",
"tslint": "5.6.0",
"typescript": "2.4.2"
}
任何线索?,这些依赖项和uglifyJs之间是否存在已知问题?
感谢。