tsutils icon indicating copy to clipboard operation
tsutils copied to clipboard

Bad .d.ts file contents breaking tsc builds

Open arobinson opened this issue 4 years ago • 0 comments

Getting an error running tsc in one of our projects due to what looks like a bad d.ts file in tsutils.

$ ./node_modules/.bin/tsc
node_modules/tsutils/util/util.d.ts:257:65 - error TS1110: Type expected.

257 export declare function formatPseudoBigInt(v: ts.PseudoBigInt): `${string}n` | `-${string}n`;
                                                                    ~~~

package.json:

{
  "name": "nw-builders",
  "version": "0.0.1",
  "scripts": {
    "build": "./node_modules/.bin/tsc",
    "clean.all": "rm -rf node_modules dist"
  },
  "engines": {
    "node": "14.15.4"
  },
  "typings": "src/index.d.ts",
  "main": "src/index.js",
  "builders": "builders.json",
  "dependencies": {
    "@angular-devkit/architect": "0.1102.3",
    "@angular-devkit/build-angular": "0.1102.3",
    "@angular-devkit/core": "11.2.3",
    "@angular/compiler": "11.2.4",
    "@angular/compiler-cli": "11.2.4",
    "@angular/core": "11.2.4",
    "@types/glob": "7.1.3",
    "@types/ncp": "2.0.4",
    "@types/node": "14.6.0",
    "@types/rimraf": "3.0.0",
    "@types/yauzl": "2.9.1",
    "aws-sdk": "2.736.0",
    "chalk": "4.1.0",
    "glob": "7.1.6",
    "ncp": "2.0.0",
    "node-fetch": "^2.6.1",
    "rimraf": "3.0.2",
    "rxjs": "6.6.2",
    "typescript": "4.0.5",
    "yauzl": "2.10.0",
    "zone.js": "0.10.3"
  },
  "peerDependencies": {},
  "devDependencies": {
    "@angular-devkit/schematics": "11.2.3",
    "@angular/cli": "11.2.3",
    "@schematics/angular": "10.0.6",
    "fibers": "5.0.0",
    "html-webpack-plugin": "4.3.0",
    "license-checker": "25.0.1",
    "moment-timezone": "0.5.31",
    "moment-timezone-es6": "1.0.0",
    "prettier": "2.0.5",
    "request": "2.88.2",
    "rxjs-tslint-rules": "4.34.7",
    "tslib": "2.0.1",
    "tslint": "6.1.3",
    "tslint-config-prettier": "1.18.0",
    "tslint-plugin-prettier": "2.3.0",
    "typescript-tslint-plugin": "0.5.5"
  }
}
yarn list tsutils
yarn list v1.22.10
warning package.json: No license field
warning [email protected]: No license field
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─ [email protected]
│  └─ [email protected]
└─ [email protected]

arobinson avatar Apr 23 '21 16:04 arobinson