這個
2021-08-09 09:38
采纳率: 33.3%
浏览 48
已结题

关于#ar#的问题:angular项目build prod失败,使用的Ant Design组件

angular项目build prod失败,使用的Ant Design组件,以下是package.json配置


"dependencies": {
    "@angular/animations": "9.1.0",
    "@angular/cdk": "^9.2.4",
    "@angular/common": "9.1.0",
    "@angular/compiler": "9.1.0",
    "@angular/core": "9.1.0",
    "@angular/forms": "9.1.0",
    "@angular/localize": "^9.1.0",
    "@angular/platform-browser": "9.1.0",
    "@angular/platform-browser-dynamic": "9.1.0",
    "@angular/router": "9.1.0",
    "@ng-bootstrap/ng-bootstrap": "^6.1.0",
    "@ngx-translate/core": "^12.1.2",
    "@ngx-translate/http-loader": "^4.0.0",
    "angular-tree-component": "^8.5.6",
    "chart.js": "^2.9.3",
    "echarts": "^5.0.2",
    "font-awesome": "^4.7.0",
    "js-sha1": "^0.6.0",
    "moment": "^2.25.3",
    "ng-pick-datetime": "^7.0.0",
    "ng-zorro-antd": "^11.1.0",
    "ng2-charts": "^2.3.2",
    "ng2-file-upload": "^1.4.0",
    "ng2-right-click-menu": "^1.1.3",
    "ngx-echarts": "^6.0.1",
    "ngx-highlight-js": "^9.0.0",
    "ngx-mqtt": "^8.0.3",
    "ngx-onlyoffice": "0.0.9",
    "ngx-qrcode2": "^9.0.0",
    "ngx-sortablejs": "^3.1.3",
    "ngx-ueditor": "^9.0.0",
    "rxjs": "^6.5.4",
    "sortablejs": "^1.10.0-rc3",
    "tslib": "^1.10.0",
    "zone.js": "^0.10.3"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.802.0",
    "@angular/cli": "9.1.0",
    "@angular/compiler-cli": "9.1.0",
    "@angular/language-service": "9.1.0",
    "@types/node": "~8.9.4",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "^5.0.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "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.15.0",
    "typescript": "3.8.3"
  }

以下是错误信息:

img

初步认为是版本问题,替换过好几个版本尝试都没有用,请问这个要怎么解决呢?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题