0

之后我将我的 Angular 应用程序版本 8 更新到 9 之后我收到了这个错误

/home/user/Desktop/angular_frontend/node_modules/angular2-moment/add.pipe.d.ts 中声明的符号 AddPipe 中的错误未从 angular2-moment/moment.module 导出(导入到 /home/user/Desktop/angular_frontend /src/app/layout/saved-mail/saved-mail.component.ts)

这是我的 package.json 文件

{
  "name": "XYZ",
  "version": "1.0.8",
  "license": "Apache",
  "scripts": {
    "ng": "ng",
    "start": "export NODE_OPTIONS='--max-old-space-size=8192'; ng serve --ssl",
    "build": "export NODE_OPTIONS='--max-old-space-size=8192'; ng build --prod --aot --build-optimizer",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
  },
  "private": true,
  "dependencies": {
    "@agm/core": "1.0.0-beta.5",
    "@angular/animations": "~9.1.13",
    "@angular/cdk": "^10.0.1",
    "@angular/common": "~9.1.13",
    "@angular/compiler": "~9.1.13",
    "@angular/core": "~9.1.13",
    "@angular/forms": "~9.1.13",
    "@angular/http": "^7.2.15",
    "@angular/platform-browser": "~9.1.13",
    "@angular/platform-browser-dynamic": "~9.1.13",
    "@angular/router": "~9.1.13",
    "@auth0/angular-jwt": "^1.1.0",
    "@fortawesome/fontawesome-free": "^5.13.1",
    "@ng-bootstrap/ng-bootstrap": "^6.0.0",
    "@ng-select/ng-select": "^0.32.0",
    "@ngx-translate/core": "^9.1.1",
    "@ngx-translate/http-loader": "^2.0.1",
    "@stripe/stripe-js": "^1.15.1",
    "@types/systemjs": "^0.20.6",
    "@types/underscore": "^1.8.8",
    "@webcomponents/shadydom": "^1.7.0",
    "angular-async-local-storage": "^3.1.1",
    "angular-bootstrap-md": "^8.10.1",
    "angular-dual-listbox": "^4.7.0",
    "angular-froala-wysiwyg": "^4.0.4",
    "angular-jwt": "^0.1.9",
    "angular-text-input-highlight": "^1.4.3",
    "angular2-jwt": "^0.2.3",
    "angular2-moment": "^1.9.0",
    "angular2-tag-input": "^1.2.3",
    "chart.js": "^2.7.1",
    "codice-fiscale-js": "^2.3.9",
    "core-js": "^2.5.4",
    "dom-to-image": "^2.6.0",
    "font-awesome": "^4.7.0",
    "froala-editor": "^2.9.8",
    "html-to-image": "^0.1.1",
    "html2canvas": "^1.0.0-rc.5",
    "iv-viewer": "2.0.1",
    "jquery": "^3.3.1",
    "lodash": "^4.17.10",
    "ment.io": "^0.9.23",
    "moment": "^2.24.0",
    "mysql": "^2.18.1",
    "ng-select": "^1.0.0-rc.5",
    "ng-socket-io": "^0.2.4",
    "ng2-charts": "^1.6.0",
    "ng2-image-viewer": "^3.0.5",
    "ng2-pdfjs-viewer": "^5.0.1",
    "ngb-tag-input": "0.0.8",
    "ngx-chips": "2.0.2",
    "ngx-cookie-service": "^1.0.10",
    "ngx-doc-viewer": "^0.1.24",
    "ngx-google-analytics": "^11.0.0",
    "ngx-image-cropper": "^0.1.28",
    "ngx-infinite-scroll": "^0.8.3",
    "ngx-moment": "^5.0.0",
    "ngx-pagination": "^3.1.0",
    "ngx-paypal": "^5.0.0-beta.10",
    "ngx-stripe": "^12.2.0",
    "ngx-tags-input": "^2.0.1",
    "postcss-loader": "^2.1.3",
    "rxjs": "~6.6.7",
    "rxjs-compat": "~6.4.0",
    "save": "^2.3.2",
    "stream": "0.0.2",
    "timers": "^0.1.1",
    "tslib": "^1.10.0",
    "xlsx": "^0.15.5",
    "xml-writer": "^1.7.0",
    "xml2js": "^0.4.19",
    "yarn": "^1.3.2",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.901.15",
    "@angular/cli": "~9.1.15",
    "@angular/compiler-cli": "~9.1.13",
    "@angular/language-service": "~9.1.13",
    "@biesbjerg/ngx-translate-extract": "^2.3.4",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.11.1",
    "@webcomponents/webcomponentsjs": "^2.4.0",
    "codelyzer": "^5.1.2",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.8.3"
  }
}

任何人都想过它。

4

0 回答 0