I inherited an Angular 2 application and have been striving to update to Angular 7. After upgrading the Angular and the latest supporting NPM resources, I ended up with 145 compiler errors. The errors were clearly defined and I made code changes to eliminate them all. I have a clean compile when I "npm start".and the application pops up at localhost:3000.
At launch I end up with a white screen with only a Zendesk chat dialog in the lower right corner (where is should be) -- but nothing else is shown. We should see a logon screen with red background.
"name": "Angular7",
"version": "1.0.0",
"scripts": {
"clean": "rd /s /q dist && mkdir dist && mkdir dist\\dependencies",
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings",
"build": "npm run clean && tsc",
"minify": "uglifyjs dist/bundle.js --screw-ie8 --compress --mangle --output dist/bundle.min.js",
"build_prod": "npm run build && browserify -s main production\\main.prod.js > dist\\bundle.js && npm run minify && xcopy /e /i /y /s assets dist\\assets && copy production\\index.html dist\\ && npm run build_prod_depds",
"build_prod_depds": "copy node_modules\\core-js\\client\\shim.min.js dist\\dependencies\\ && copy node_modules\\zone.js\\dist\\zone.js dist\\dependencies\\ && copy node_modules\\reflect-metadata\\Reflect.js dist\\dependencies\\ && copy node_modules\\systemjs\\dist\\system.src.js dist\\dependencies\\ && copy systemjs.config.js dist\\"
},
"licenses": [
{
"type": "MIT",
}
],
"dependencies": {
"@agm/core": "^1.0.0-beta.5",
"@angular/animations": "^7.2.5",
"@angular/cli": "^7.3.1",
"@angular/common": "^7.2.5",
"@angular/compiler": "^7.2.5",
"@angular/core": "^7.2.5",
"@angular/forms": "^7.2.5",
"@angular/http": "^7.2.5",
"@angular/material": "^7.3.2",
"@angular/platform-browser": "^7.2.5",
"@angular/platform-browser-dynamic": "^7.2.5",
"@angular/router": "^7.2.5",
"@angular/upgrade": "^7.2.5",
"angular-in-memory-web-api": "^0.8.0",
"braintree-web": "^3.42.0",
"chartist": "^0.9.8",
"core-js": "^2.6.5",
"jquery": "^3.3.1",
"ng-chartist": "^4.1.0",
"ngx-bootstrap": "^1.6.3",
"ngx-webstorage": "^3.0.2",
"ngx-zendesk-webwidget": "^0.1.4",
"reflect-metadata": "^0.1.13",
"rxjs": "^6.4.0",
"systemjs": "^3.0.0",
"zone.js": "^0.8.29"
},
"devDependencies": {
"@types/braintree-web": "3.6.0",
"@types/chartist": "^0.9.44",
"@types/core-js": "^2.5.0",
"@types/jquery": "^3.3.11",
"@types/node": "^11.9.4",
"browser-sync": "^2.26.3",
"browserify": "^16.2.3",
"concurrently": "^4.1.0",
"connect-history-api-fallback": "^1.6.0",
"del": "^3.0.0",
"dotenv": "^6.2.0",
"gulp": "^4.0.0",
"gulp-browserify": "0.5.1",
"gulp-clean": "0.3.2",
"gulp-clean-css": "2.1.1",
"gulp-concat": "2.6.1",
"gulp-dotenv": "0.2.1",
"gulp-hash": "^4.2.2",
"gulp-html-replace": "1.6.1",
"gulp-inject": "4.2.0",
"gulp-inline-ng2-template": "4.0.0",
"gulp-ng-annotate": "2.0.0",
"gulp-sass": "3.1.0",
"gulp-shell": "0.5.2",
"gulp-sourcemaps": "^2.6.4",
"gulp-tsc": "^1.3.2",
"gulp-tslint": "7.0.1",
"gulp-typescript": "^3.1.3",
"gulp-uglify": "2.0.0",
"gulp-util": "3.0.7",
"lite-server": "^2.4.0",
"mkdirp": "0.5.1",
"pump": "^3.0.0",
"run-sequence": "1.2.2",
"systemjs-builder": "^0.16.13",
"tslint-eslint-rules": "3.1.0",
"typescript": "^3.3.3",
"typings": "^2.1.1",
"uglify-js": "2.7.3"
}
}