FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
74.37k stars 12.21k forks source link

Bug: Error on build for incompatible type #18960

Closed ChazUK closed 2 years ago

ChazUK commented 2 years ago

I'm not really sure what's happening here as my project was working correctly but now I'm getting this error.

Error: src/app/shared/icons.module.ts:173:7 - error TS2345: Argument of type 'import("./node_modules/@fortawesome/pro-light-svg-icons/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition' is not assignable to parameter of type 'import("./node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition'.
  Types of property 'iconName' are incompatible.
    Type 'import("./node_modules/@fortawesome/pro-light-svg-icons/node_modules/@fortawesome/fontawesome-common-types/index").IconName' is not assignable to type 'import("./new/node_modules/@fortawesome/fontawesome-common-types/index").IconName'.
      Type '"acquisitions-incorporated"' is not assignable to type 'IconName'.

173       angleDownLight,
          ~~~~~~~~~~~~~~

package.json

"dependencies": {
    "@angular-devkit/build-angular": "~0.1102.18",
    "@angular/animations": "^11.2.14",
    "@angular/cdk": "^11.2.13",
    "@angular/common": "^11.2.14",
    "@angular/compiler": "^11.2.14",
    "@angular/core": "^11.2.14",
    "@angular/forms": "^11.2.14",
    "@angular/material": "^11.2.13",
    "@angular/material-moment-adapter": "^11.2.13",
    "@angular/platform-browser": "~11.2.14",
    "@angular/platform-browser-dynamic": "~11.2.14",
    "@angular/router": "~11.2.14",
    "@fortawesome/angular-fontawesome": "^0.8.0",
    "@fortawesome/fontawesome-svg-core": "^1.2.36",
    "@fortawesome/free-regular-svg-icons": "^5.15.4",
    "@fortawesome/free-solid-svg-icons": "^5.15.4",
    "@fortawesome/pro-light-svg-icons": "^5.15.4",
    "@fortawesome/pro-regular-svg-icons": "^5.15.4",
    "@fortawesome/pro-solid-svg-icons": "^5.15.4",
    "@grapecity/spread-sheets": "^14.2.5",
    "@grapecity/spread-sheets-angular": "^14.2.5",
    "@grapecity/spread-sheets-charts": "^14.2.5",
    "@handsontable/angular": "^5.0.0",
    "@ngrx/effects": "^11.1.1",
    "@ngrx/entity": "^11.1.1",
    "@ngrx/router-store": "^11.1.1",
    "@ngrx/store": "^11.1.1",
    "@ngrx/store-devtools": "^11.1.1",
    "@types/googlemaps": "^3.37.7",
    "ag-grid-angular": "^25.3.0",
    "ag-grid-community": "^25.3.0",
    "big.js": "^6.1.1",
    "bowser": "^2.7.0",
    "chart.js": "^2.9.3",
    "core-js": "^3.20.1",
    "file-saver": "^2.0.5",
    "handsontable": "7.1.0",
    "konva": "^7.1.4",
    "lodash-es": "^4.17.15",
    "logrocket": "^2.2.0",
    "mapbox-gl": "^2.0.1",
    "moment": "2.29.1",
    "net": "^1.0.2",
    "ng2-charts": "2.4.1",
    "ng2-dragula": "^2.1.1",
    "ng2-konva": "^6.0.0",
    "ng2-pdf-viewer": "7.0.1",
    "ngx-file-drop": "^10.1.1",
    "ngx-mapbox-gl": "6.0.4",
    "ngx-socket-io": "3.3.0",
    "normalize.css": "^8.0.1",
    "pspdfkit": "2021.4.2",
    "rxjs": "^6.5.3",
    "tslib": "^2.3.1",
    "uuid": "^7.0.3",
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular/cli": "^11.2.14",
    "@angular/compiler-cli": "^11.2.14",
    "@angular/language-service": "^11.2.14",
    "@types/big.js": "^6.1.3",
    "@types/chai": "^4.3.0",
    "@types/cucumber": "^4.0.5",
    "@types/file-saver": "^2.0.5",
    "@types/jasmine": "~3.6.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/lodash-es": "^4.17.5",
    "@types/mapbox-gl": "2.0.2",
    "@types/node": "^12.20.38",
    "chai": "^4.2.0",
    "codelyzer": "^6.0.0",
    "cucumber": "^5.1.0",
    "form-data": "^2.5.1",
    "fs-extra": "^7.0.1",
    "husky": "^1.3.1",
    "jasmine-core": "~3.7.1",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.3.11",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "1.6.0",
    "lint-staged": "8.1.7",
    "prettier": "^1.19.1",
    "prettier-stylelint": "^0.4.2",
    "protractor": "~7.0.0",
    "protractor-cucumber-framework": "^6.1.2",
    "protractor-http-client": "^1.0.4",
    "protractor-multiple-cucumber-html-reporter-plugin": "^1.8.1",
    "request": "^2.88.0",
    "request-promise": "^4.2.4",
    "stylelint": "^14.7.1",
    "stylelint-config-idiomatic-order": "^8.1.0",
    "stylelint-config-prettier": "^9.0.3",
    "stylelint-config-standard-scss": "^3.0.0",
    "ts-node": "~7.0.0",
    "tslint": "~6.1.0",
    "typescript": "4.0.8",
    "webdriver-manager": "^13.0.0"
  }
ChazUK commented 2 years ago

Looks like an incompatility between 1.3.0+ and some other package I'm using