Upon trying to build my Angular 6 App using ng build ---prod
, I encountered the following error:
ERROR in scripts.28e0dfadf7f39e74e940.js from UglifyJs Unexpected character '@' [scripts.28e0dfadf7f39e74e940.js:13,0]
What might be causing this issue?
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}