Trying to understand the reason behind a successful local project build but a failure on the build server
Both machines are using the same package.json
"name": "UDP",
"version": "0.0.1",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"buildProd": "ng build --prod",
"lint": "tslint \"src/**/*.ts\""
},
"private": true,
"dependencies": {
...
},
"devDependencies": {
...
}
}
I execute the script rm -r node_modules
to clean up node_modules before the build process.
Encountering the error
@types/lodash/common/array.d.ts(483,22): error TS1005: ';'
after running ng build --prod
.
Using Angular5 on Windows Server 2012 R2