metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node_modules/@metaplex-foundation/js/node_modules/@irys/query/build/cjs/types.d.ts:50:58 - error TS1005: '?' expected.

ihor-protsenko-theraven opened this issue · comments

Error: node_modules/@metaplex-foundation/js/node_modules/@irys/query/build/cjs/types.d.ts:50:58 - error TS1005: '?' expected.

50 [K in keyof T]?: T[K] extends (infer U extends object)[] ? Field<U> : T[K] extends object ? Field<T[K]> : boolean;

package.json dependencies

"dependencies": {

  • "@angular/animations": "~13.3.0",
    
  • "@angular/cdk": "^13.3.1",
    
  • "@angular/common": "~13.3.0",
    
  • "@angular/compiler": "~13.3.0",
    
  • "@angular/core": "~13.3.0",
    
  • "@angular/forms": "~13.3.0",
    
  • "@angular/platform-browser": "~13.3.0",
    
  • "@angular/platform-browser-dynamic": "~13.3.0",
    
  • "@angular/router": "~13.3.0",
    
  • "@irys/query": "^0.0.2",
    
  • "@irys/sdk": "^0.1.1",
    
  • "@metaplex-foundation/js": "^0.20.1",
    
  • "@openid/appauth": "^1.2.7",
    
  • "@popperjs/core": "^2.11.5",
    
  • "@sentry/angular": "^7.43.0",
    
  • "@sentry/electron": "^4.3.0",
    
  • "@solana/web3.js": "^1.87.6",
    
  • "@types/jquery": "^3.5.16",
    
  • "auto-launch": "^5.0.5",
    
  • "axios": "1.6.0",
    
  • "crypto-js": "^4.1.1",
    
  • "electron-dl": "^3.2.1",
    
  • "electron-localshortcut": "^3.2.1",
    
  • "electron-log": "^4.2.2",
    
  • "electron-updater": "^4.6.5",
    
  • "ethers": "^6.6.2",
    
  • "extract-zip": "^2.0.1",
    
  • "jquery": "^3.7.1",
    
  • "kill-port-process": "^3.1.0",
    
  • "lodash": "^4.17.21",
    
  • "metro4": "^4.3.4",
    
  • "minisearch": "^5.0.0",
    
  • "multicoin-address-validator": "^0.5.8",
    
  • "ng-circle-progress": "1.6.0",
    
  • "ngx-auto-unsubscribe-decorator": "^1.1.0",
    
  • "ngx-owl-carousel-o": "^7.0.4",
    
  • "ngx-pagination": "^5.1.0",
    
  • "ngx-smart-modal": "^7.4.1",
    
  • "ngx-toastr": "^14.2.2",
    
  • "node-notifier": "^10.0.1",
    
  • "open": "^8.4.0",
    
  • "openid": "^2.0.6",
    
  • "patch-package": "^6.5.0",
    
  • "path": "^0.12.7",
    
  • "ping": "^0.4.2",
    
  • "pushy-electron": "^1.0.8",
    
  • "rxjs": "~7.5.5",
    
  • "systeminformation": "5.21.7",
    
  • "tslib": "^2.3.1",
    
  • "twitter-api-sdk": "^1.1.0",
    
  • "zone.js": "~0.11.4"
    

    },
    "devDependencies": {

  • "@angular-builders/custom-webpack": "^13.1.0",
    
  • "@angular-devkit/build-angular": "~13.3.0",
    
  • "@angular-eslint/builder": "13.5.0",
    
  • "@angular-eslint/eslint-plugin": "13.5.0",
    
  • "@angular-eslint/eslint-plugin-template": "13.5.0",
    
  • "@angular-eslint/schematics": "13.5.0",
    
  • "@angular-eslint/template-parser": "13.5.0",
    
  • "@angular/cli": "~13.3.0",
    
  • "@angular/compiler-cli": "~13.3.0",
    
  • "@angular/language-service": "~13.3.0",
    
  • "@ng-select/ng-select": "^8.1.1",
    
  • "@types/electron-localshortcut": "^3.1.0",
    
  • "@types/jasmine": "~4.0.0",
    
  • "@types/jasminewd2": "~2.0.3",
    
  • "@types/node": "^18.17.14",
    
  • "@typescript-eslint/eslint-plugin": "5.27.1",
    
  • "@typescript-eslint/parser": "5.27.1",
    
  • "codelyzer": "^6.0.2",
    
  • "concurrently": "^7.6.0",
    
  • "electron": "29.0.0-alpha.1",
    
  • "electron-builder": "^24.4.0",
    
  • "eslint": "^8.17.0",
    
  • "http-server": "^14.1.1",
    
  • "jasmine-core": "~4.0.1",
    
  • "jasmine-spec-reporter": "~7.0.0",
    
  • "karma": "~6.3.17",
    
  • "karma-coverage": "^2.2.0",
    
  • "karma-electron": "^7.3.0",
    
  • "karma-jasmine": "~4.0.0",
    
  • "karma-jasmine-html-reporter": "^1.5.0",
    
  • "ngx-clipboard": "^15.1.0",
    
  • "ngx-pagination": "^5.1.0",
    
  • "ngx-perfect-scrollbar": "^10.1.1",
    
  • "node-polyfill-webpack-plugin": "^1.1.4",
    
  • "npm-run-all": "^4.1.5",
    
  • "prettier": "^2.6.1",
    
  • "protractor": "~7.0.0",
    
  • "rimraf": "^3.0.2",
    
  • "ts-node": "~10.7.0",
    
  • "tslint": "~6.1.0",
    
  • "typescript": "~4.6.4"
    

    }`

hey @ihor-protsenko-theraven , developer from Irys here - it looks like the fix is upgrading your typescript version to at least 4.7.0 - this error is a bug in TS