Skip to content

[NewErrors] 5.2.0-dev.20230618 vs 5.1.3 #54695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
typescript-bot opened this issue Jun 18, 2023 · 6 comments
Closed

[NewErrors] 5.2.0-dev.20230618 vs 5.1.3 #54695

typescript-bot opened this issue Jun 18, 2023 · 6 comments
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.2.0-dev.20230618, but not by 5.1.3
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 115 of 200 visited repos
Outcome Count
Detected interesting changes 3
Detected no interesting changes 112
Git clone failed 2
Package install failed 25
Project-graph error in old TS 5
Too many errors in old TS 48
Unknown failure 5

Investigation Status

Repo Errors Outcome
colinhacks/zod 30
ReactiveX/rxjs 1
tldraw/tldraw 3
@typescript-bot
Copy link
Collaborator Author

colinhacks/zod

tsconfig.cjs.json

  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<string>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<number>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<bigint>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Date; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Map<any, any>; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<this["_output"]>'.

tsconfig.esm.json

  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<string>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<number>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<bigint>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Date; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Map<any, any>; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<this["_output"]>'.

tsconfig.json

  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<string>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<number>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<bigint>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Date; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Map<any, any>; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<this["_output"]>'.

tsconfig.test.json

  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<string>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<number>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<bigint>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Date; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Map<any, any>; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<this["_output"]>'.

tsconfig.types.json

  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<string>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<number>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<bigint>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Date; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: Map<any, any>; }' is not assignable to type 'ParseReturnType<this["_output"]>'.
  • error TS2322: Type '{ status: "aborted" | "dirty" | "valid"; value: any; }' is not assignable to type 'ParseReturnType<this["_output"]>'.

@typescript-bot
Copy link
Collaborator Author

ReactiveX/rxjs

8 of 13 projects failed to build with the old tsc and were ignored

src/tsconfig.types.json

  • error TS2428: All declarations of 'WeakMap' must have identical type parameters.
    • file:///home/vsts/work/1/s/typescript-5.2.0-dev.20230618/lib/lib.es2015.collection.d.ts#L63 in src/tsconfig.types.json
    • file:///home/vsts/work/1/s/typescript-5.2.0-dev.20230618/lib/lib.es2015.iterable.d.ts#L162 in src/tsconfig.types.json
    • file:///home/vsts/work/1/s/typescript-5.2.0-dev.20230618/lib/lib.es2015.symbol.wellknown.d.ts#L140 in src/tsconfig.types.json
    • file:///mnt/ts_downloads/rxjs/node_modules/@types/lodash/index.d.ts#L372 in src/tsconfig.types.json

@typescript-bot
Copy link
Collaborator Author

tldraw/tldraw

3 of 8 projects failed to build with the old tsc and were ignored

apps/examples/tsconfig.json

apps/vscode/editor/tsconfig.json

apps/vscode/extension/tsconfig.json

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Jun 21, 2023
@RyanCavanaugh
Copy link
Member

@gabritto can you check out zod specifically?

@gabritto
Copy link
Member

@gabritto can you check out zod specifically?

The issues on zod were fixed by #54713.

@axetroy
Copy link

axetroy commented Aug 30, 2023

ERROR in C:/Users/Admin/gpm/my_project/node_modules/@types/lodash/index.d.ts(44,15):
44:15 All declarations of 'WeakMap' must have identical type parameters.
    42 |     interface WeakSet<T> { }
    43 |     // tslint:disable-next-line:no-empty-interface
  > 44 |     interface WeakMap<K extends object, V> { }
       |               ^
    45 | }
    46 |
ERROR in C:/Users/Admin/gpm/my_project/node_modules/typescript/lib/lib.es2015.collection.d.ts(63,11):
63:11 All declarations of 'WeakMap' must have identical type parameters.
    61 | }
    62 |
  > 63 | interface WeakMap<K extends WeakKey, V> {
       |           ^
    64 |     /**
    65 |      * Removes the specified element from the WeakMap.
    66 |      * @returns true if the element was successfully removed, or false if it was not present.
ERROR in C:/Users/Admin/gpm/my_project/node_modules/typescript/lib/lib.es2015.iterable.d.ts(162,11):
162:11 All declarations of 'WeakMap' must have identical type parameters.
    160 | }
    161 |
  > 162 | interface WeakMap<K extends WeakKey, V> { }
        |           ^
    163 |
    164 | interface WeakMapConstructor {
    165 |     new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
ERROR in C:/Users/Admin/gpm/my_project/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts(140,11):
140:11 All declarations of 'WeakMap' must have identical type parameters.
    138 | }
    139 |
  > 140 | interface WeakMap<K extends WeakKey, V> {
        |           ^
    141 |     readonly [Symbol.toStringTag]: string;
    142 | }
    143 |
Version: typescript 5.2.2

It seem this error still exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

4 participants