Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Package.json issues so want to upgrade my angular project to 7.2 #7755


User avatar
0
bluescopesteel created

Hi, I have run into package.json issues and so I cant get my angular code to build. All sorts of issues with incompatible angular vs types script issues. Not sure how to get back to a working state. It all just happened when I added ng2-pdf-viewer. Suddenly "npm start" would no longer compile. I spent hours mucking around with yarn and upgrading app versions - but to no avail. This is my package.json:

{ "name": "abp-zero-template", "version": "6.9.0", "license": "MIT", "angular-cli": {}, "scripts": { "ng": "ng", "publish": "ng build --env=prod", "publishprod": "ng build --configuration=production", "publishstaging": "ng build --configuration=staging", "publishtest": "ng build --configuration=test", "publishdevelopment": "ng build --configuration=development", "start": "ng serve --host 0.0.0.0 --port 4200", "hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr", "test": "ng test", "pree2e": "webdriver-manager update --standalone false --gecko false", "e2e": "protractor" }, "private": false, "dependencies": { "@angular-devkit/build-angular": "^0.803.6", "@angular/animations": "^8.2.1", "@angular/cdk": "^8.2.1", "@angular/cli": "^8.2.1", "@angular/common": "^8.2.1", "@angular/compiler": "^8.2.1", "@angular/compiler-cli": "^8.2.1", "@angular/core": "^8.2.1", "@angular/forms": "^8.2.1", "@angular/http": "^7.2.15", "@angular/platform-browser": "^8.2.1", "@angular/platform-browser-dynamic": "^8.2.1", "@angular/platform-server": "^8.2.1", "@angular/router": "^8.2.1", "@aspnet/signalr": "^1.1.2", "@swimlane/ngx-charts": "^10.1.0", "abp-ng2-module": "^3.2.4", "abp-web-resources": "^3.8.5", "adal-angular": "^1.0.17", "angular-oauth2-oidc": "^5.0.2", "angular2-counto": "^1.2.5", "angular2-text-mask": "^9.0.0", "animate.css": "^3.7.0", "cookieconsent": "^3.1.0", "core-js": "^2.6.5", "devextreme": "19.1.6", "devextreme-angular": "^19.1.6", "famfamfam-flags": "^1.0.0", "js-cookie": "^2.2.0", "localforage": "^1.7.3", "lodash": "^4.17.11", "moment": "^2.24.0", "moment-timezone": "^0.5.23", "ng-recaptcha": "^4.2.1", "ng2-file-upload": "^1.3.0", "ng2-pdf-viewer": "^5.3.4", "ngx-bootstrap": "^4.0.0", "ngx-image-cropper": "^1.3.8", "ngx-perfect-scrollbar": "^7.2.1", "object-path": "^0.11.4", "primeicons": "^1.0.0", "primeng": "^7.1.0", "push.js": "^1.0.9", "quill": "^1.3.6", "rtl-detect": "^1.0.2", "rxjs": "^6.4.0", "simple-line-icons": "^2.4.1", "stream": "^0.0.2", "sweetalert2": "^8.8.0", "text-mask-addons": "^3.8.0", "zone.js": "^0.9.0" }, "devDependencies": { "@angularclass/hmr": "^2.1.3", "@angularclass/hmr-loader": "^3.0.4", "@types/jasmine": "~3.3.12", "@types/jasminewd2": "~2.0.6", "@types/lodash": "^4.14.123", "@types/moment-timezone": "^0.5.12", "@types/node": "^11.13.0", "codelyzer": "^5.0.0", "jasmine-core": "~3.3.0", "jasmine-spec-reporter": "^4.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "~2.2.0", "karma-cli": "~2.0.0", "karma-coverage-istanbul-reporter": "^2.0.5", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "nswag": "12.0.20", "protractor": "~5.4.2", "ts-node": "~8.0.3", "tslint": "~5.15.0", "typescript": "3.4.5" } }

I have just downloaded the latest version for my project of ASP.NET Zero (7.2) and want to upgrade my angular project and use the new package.json. How do I go about doingthis upgrade?

Or dor you recommend I do something else to get my angular code building again.

Many thanks Mark


2 Answer(s)