TypeScript
TypeScript copied to clipboard
[NewErrors] 4.9.0-dev.20221030 vs 4.8.4
The following errors were reported by 4.9.0-dev.20221030, but not by 4.8.4 Pipeline that generated this bug Logs for the pipeline run File that generated the pipeline
This run considered 200 popular TS repos from GH (after skipping the top 0).
Successfully analyzed 126 of 200 visited repos
| Outcome | Count |
|---|---|
| Detected interesting changes | 17 |
| Detected no interesting changes | 109 |
| Git clone failed | 2 |
| Package install failed | 21 |
| Project-graph error in old TS | 3 |
| Too many errors in old TS | 44 |
| Unknown failure | 4 |
Investigation Status
| Repo | Errors | Outcome |
|---|---|---|
| ant-design/ant-design | 1 | |
| codex-team/editor.js | 1 | |
| darkreader/darkreader | 8 | |
| directus/directus | 2 | |
| Eugeny/tabby | 10 | |
| graphql/graphql-js | 1 | |
| JedWatson/react-select | 1 | |
| jupyterlab/jupyterlab | 2 | |
| lensapp/lens | 10 | |
| puppeteer/puppeteer | 3 | |
| reduxjs/redux-devtools | 1 | |
| reduxjs/reselect | 2 | |
| Tencent/vConsole | 6 | |
| umijs/umi | 2 | |
| vercel/hyper | 1 | |
| vercel/swr | 3 | |
| vuejs/core | 4 |
ant-design/ant-design
tsconfig.json
error TS2352: Conversion of type '{ pagination: true; }' to type 'TableProps<any>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
codex-team/editor.js
2 of 3 projects failed to build with the old tsc and were ignored
tsconfig.build.json
error TS2367: This comparison appears to be unintentional because the types 'PasteConfig' and 'boolean' have no overlap.
darkreader/darkreader
2 of 6 projects failed to build with the old tsc and were ignored
src/api/tsconfig.json
error TS2339: Property 'getRandomValues' does not exist on type 'never'.error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'.
src/tsconfig.json
error TS2339: Property 'getRandomValues' does not exist on type 'never'.error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'.
tests/inject/tsconfig.json
error TS2339: Property 'getRandomValues' does not exist on type 'never'.error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'.
tests/unit/tsconfig.json
error TS2339: Property 'getRandomValues' does not exist on type 'never'.error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'number'.
directus/directus
4 of 15 projects failed to build with the old tsc and were ignored
packages/shared/tsconfig.json
error TS2741: Property '0' is missing in type 'string[]' but required in type 'RegExpMatchArray'.
tests-blackbox/tsconfig.json
error TS2741: Property '0' is missing in type 'string[]' but required in type 'RegExpMatchArray'.
Eugeny/tabby
9 of 29 projects failed to build with the old tsc and were ignored
tabby-community-color-schemes/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-electron/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-linkifier/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-local/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-serial/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-ssh/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-telnet/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-terminal/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-terminal/tsconfig.typings.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
tabby-web-demo/tsconfig.json
error TS2352: Conversion of type 'MouseEvent & Record<"wheelDeltaY", unknown>' to type 'WheelEvent' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
graphql/graphql-js
1 of 2 projects failed to build with the old tsc and were ignored
tsconfig.json
error TS2578: Unused '@ts-expect-error' directive.
JedWatson/react-select
3 of 5 projects failed to build with the old tsc and were ignored
packages/react-select/src/__tests__/tsconfig.json
error TS2322: Type 'Option | Group' is not assignable to type 'object'.
jupyterlab/jupyterlab
48 of 56 projects failed to build with the old tsc and were ignored
packages/services/examples/browser/tsconfig.json
error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.- file:///mnt/ts_downloads/jupyterlab/node_modules/@types/node/globals.d.ts#L114 in packages/coreutils/tsconfig.json
- file:///mnt/ts_downloads/jupyterlab/node_modules/@types/node/globals.d.ts#L114 in packages/statedb/tsconfig.json
packages/services/examples/typescript-browser-with-output/tsconfig.json
error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.- file:///mnt/ts_downloads/jupyterlab/node_modules/@types/node/globals.d.ts#L114 in packages/coreutils/tsconfig.json
- file:///mnt/ts_downloads/jupyterlab/node_modules/@types/node/globals.d.ts#L114 in packages/statedb/tsconfig.json
lensapp/lens
6 of 8 projects failed to build with the old tsc and were ignored
tsconfig.json
error TS2322: Type 'Promise<ReadableStreamReadResult<T>> | Promise<ReadableStreamReadResult<ArrayBufferView>>' is not assignable to type 'Promise<ReadableStreamDefaultReadResult<T>> | undefined'.error TS2554: Expected 1 arguments, but got 0.error TS18048: 'data' is possibly 'undefined'.error TS18048: 'data.value' is possibly 'undefined'.error TS2322: Type 'RegExpMatchArray | []' is not assignable to type 'RegExpMatchArray'.
webpack/tsconfig.json
error TS2322: Type 'Promise<ReadableStreamReadResult<T>> | Promise<ReadableStreamReadResult<ArrayBufferView>>' is not assignable to type 'Promise<ReadableStreamDefaultReadResult<T>> | undefined'.error TS2554: Expected 1 arguments, but got 0.error TS18048: 'data' is possibly 'undefined'.error TS18048: 'data.value' is possibly 'undefined'.error TS2322: Type 'RegExpMatchArray | []' is not assignable to type 'RegExpMatchArray'.
puppeteer/puppeteer
4 of 7 projects failed to build with the old tsc and were ignored
packages/testserver/tsconfig.json
error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; timeout(milliseconds: number): AbortSignal; }'.- file:///mnt/ts_downloads/puppeteer/node_modules/@types/node/globals.d.ts#L72 in packages/testserver/tsconfig.json
test/installation/tsconfig.json
error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; timeout(milliseconds: number): AbortSignal; }'.- file:///mnt/ts_downloads/puppeteer/node_modules/@types/node/globals.d.ts#L72 in test/installation/tsconfig.json
tools/tsconfig.json
error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; timeout(milliseconds: number): AbortSignal; }'.- file:///mnt/ts_downloads/puppeteer/node_modules/@types/node/globals.d.ts#L72 in tools/tsconfig.json
reduxjs/redux-devtools
10 of 57 projects failed to build with the old tsc and were ignored
packages/redux-devtools-utils/tsconfig.json
error TS2367: This comparison appears to be unintentional because the types '{ immutable?: typeof Immutable | undefined; refs?: (new (data: any) => unknown)[] | null | undefined; replacer?: ((key: string, value: unknown) => unknown) | undefined; options?: unknown; }' and 'boolean' have no overlap.
reduxjs/reselect
1 of 3 projects failed to build with the old tsc and were ignored
typescript_test/tsconfig.json
error TS2578: Unused '@ts-expect-error' directive.error TS2345: Argument of type '[{ counter1: number; counter2: number; }, ({} | undefined)?]' is not assignable to parameter of type '[State, (number | undefined)?]'.
Tencent/vConsole
tsconfig.json
error TS2741: Property '0' is missing in type 'string[]' but required in type 'RegExpMatchArray'.error TS2339: Property 'apply' does not exist on type 'string extends keyof T ? T[keyof T & string] : any'.error TS2322: Type '() => ReadableStreamReader<Uint8Array>' is not assignable to type '{ (options: { mode: "byob"; }): ReadableStreamBYOBReader; (): ReadableStreamDefaultReader<Uint8Array>; (options?: ReadableStreamGetReaderOptions): ReadableStreamReader<...>; }'.
tsconfig.type.json
error TS2741: Property '0' is missing in type 'string[]' but required in type 'RegExpMatchArray'.error TS2339: Property 'apply' does not exist on type 'string extends keyof T ? T[keyof T & string] : any'.error TS2322: Type '() => ReadableStreamReader<Uint8Array>' is not assignable to type '{ (options: { mode: "byob"; }): ReadableStreamBYOBReader; (): ReadableStreamDefaultReader<Uint8Array>; (options?: ReadableStreamGetReaderOptions): ReadableStreamReader<...>; }'.
umijs/umi
18 of 48 projects failed to build with the old tsc and were ignored
packages/bundler-esbuild/tsconfig.json
error TS2769: No overload matches this call.
tsconfig.json
error TS2769: No overload matches this call.
vercel/hyper
2 of 3 projects failed to build with the old tsc and were ignored
tsconfig.json
error TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; timeout(milliseconds: number): AbortSignal; }'.- file:///mnt/ts_downloads/hyper/node_modules/@types/node/globals.d.ts#L72 in app/tsconfig.json
vercel/swr
3 of 10 projects failed to build with the old tsc and were ignored
test/tsconfig.json
error TS2339: Property 'v' does not exist on type 'string | string[] | { v: string; }'.
test/type/tsconfig.json
error TS2345: Argument of type '((string | number)[] | { a: string; b: { c: string; }; })[]' is not assignable to parameter of type '[{ a: string; b: { c: string; }; }, (string | number)[]]'.error TS2345: Argument of type '((string | number)[] | { a: string; b: { c: string; d: number; }; })[]' is not assignable to parameter of type '[{ a: string; b: { c: string; }; }, (string | number)[]]'.
vuejs/core
1 of 3 projects failed to build with the old tsc and were ignored
test-dts/tsconfig.json
error TS2322: Type 'number' is not assignable to type 'Function'.
tsconfig.json
error TS2322: Type 'number' is not assignable to type 'Function'.error TS7006: Parameter 'vm' implicitly has an 'any' type.error TS2322: Type '{ new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy<Uint8Array> | undefined): ReadableStream<Uint8Array>; new <R = any>(underlyingSource?: UnderlyingSource<...> | undefined, strategy?: QueuingStrategy<...> | undefined): ReadableStream<...>; prototype: ReadableStream<...>; }' is not assignable to type '{ new (underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number | undefined; } | undefined): ReadableStream<Uint8Array>; new <R = any>(underlyingSource: UnderlyingDefaultSource<...>, strategy?: QueuingStrategy<...> | undefined): ReadableStream<...>; new <R = any>(underlyingSource?: UnderlyingSourc...'.
New to investigate:
directus/directus puppeteer/puppeteer reduxjs/redux-devtools umijs/umi vercel/swr vuejs/core
umi's error is correct. Isolated:
const aliasLessImports = async (
ctx: string,
alias: Record<string, string>,
importer: string,
) => {
const importRegex = /@import(?:\s+\((.*)\))?\s+['"](.*)['"]/;
const globalImportRegex = /@import(?:\s+\((.*)\))?\s+['"](.*)['"]/g;
const match = ctx.match(globalImportRegex) || [];
for (const el of match) {
const [imp, _, filePath] = el.match(importRegex) || [];
ctx = ctx.replace(imp, el.replace(filePath, "foo"));
}
return ctx;
};
imp may very well be undefined (as noted by the default to [])
directus was impacted by the RegExp Match Array thing which we still need to pin down
puppeteer affected by a straightforward conflict in the node definition files