Обновление Angular 8, невозможно прочитать свойство 'baseUrl' из неопределенного baseUrl / zone.js - PullRequest
0 голосов
/ 25 июня 2019

я обновил свое приложение с Angular7 до 8 и внес необходимые изменения, такие как @ViewChild изменение синтаксиса и т. Д., Теперь после успешной сборки приложение не может работать в режиме DEV, как говорится «Cannot GET /data/common/startUp.json».msgstr "но он работает успешно после развертывания на сервере."

Ошибки консоли:

GET http://localhost:4200/data/common/startUp.json?V=1561472946010 404 (не найдено) Не ​​удается прочитать свойство 'baseUrl' из неопределенного

Каждый разя обновляю "Angular Version", baseurl становится нарушенным.

Package.json

{
  "dependencies": {
    "@agm/core": "^1.0.0-beta.5",
    "@angular-devkit/core": "~0.7.1",
    "@angular/animations": "8.0.0",
    "@angular/cdk": "^8.0.1",
    "@angular/common": "8.0.0",
    "@angular/compiler": "^8.0.0",
    "@angular/core": "^8.0.0",
    "@angular/forms": "8.0.0",
    "@angular/http": "7.2.12",
    "@angular/platform-browser": "8.0.0",
    "@angular/platform-browser-dynamic": "8.0.0",
    "@angular/router": "8.0.0",
    "@types/core-js": "^0.9.42",
    "@types/crypto-js": "^3.1.37",
    "angular-in-memory-web-api": "^0.8.0",
    "angular2-draggable": "1.1.0-beta.0",
    "classlist.js": "^1.1.20150312",
    "concurrently": "^3.5.1",
    "core-js": "2.4.1",
    "crypto-js": "^3.1.9-1",
    "enhanced-resolve": "3.3.0",
    "lite-server": "^2.3.0",
    "ngx-contextmenu": "^5.1.1",
    "ngx-drag-scroll": "^7.1.4",
    "ngx-toastr": "10.0.2",
    "reflect-metadata": "0.1.8",
    "rxjs": "6.4.0",
    "rxjs-compat": "6.2.2",
    "systemjs": "0.19.40",
    "vkbeautify": "0.99.3",
    "web-animations-js": "^2.3.1",
    "zone.js": "^0.8.26",
    "node-sass": "^4.12.0"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.7.1",
    "@angular/cli": "^8.0.1",
    "@angular/compiler-cli": "^8.0.0",
    "@angular/language-service": "7.2.12",
    "@types/jasmine": "2.5.45",
    "@types/node": "~6.0.60",
    "codelyzer": "^5.0.0-beta.1",
    "gulp": "3.9.1",
    "gulp-cache": "^0.4.6",
    "gulp-clean": "^0.3.2",
    "gulp-concat": "2.6.0",
    "gulp-html-replace": "^1.6.2",
    "gulp-imagemin": "^3.2.0",
    "gulp-install": "~0.6.0",
    "gulp-load-plugins": "^1.5.0",
    "gulp-minify-css": "~1.2.4",
    "gulp-modify-css-urls": "^0.2.2",
    "gulp-rename": "^1.2.2",
    "gulp-sass": "^2.3.2",
    "gulp-scripts-index": "^0.3.0",
    "gulp-size": "^2.1.0",
    "gulp-uglify": "^2.1.0",
    "gulp-useref": "^3.1.2",
    "ts-node": "~3.0.4",
    "tslint": "^5.3.2",
    "typescript": "3.4.5",
    "webpack": "^4.35.0"
  }, 
  "name": "DevSoft",
  "private": true,
  "scripts": {
    "build": "ng build",
    "buildprod": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build --prod && gulp copy-staticdata --gulpfile src/gulpfile.js",
    "e2e": "ng e2e",
    "lint": "ng lint",
    "lite": "lite-server",
    "ng": "ng",
    "start": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve -o",
    "start-lite": "concurrent \"npm run tsc:w\" \"npm run lite\"  ",
    "test": "ng test",
    "tsc": "tsc",
    "tsc:w": "tsc -w"
  },
  "version": "0.0.0"
}

Ожидается: загрузка "startUp.json". Каждый раз, когда я обновляю свою Angular Version, путь к "startUp.json "беспокоится.

...