Skip to content
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

[NewErrors] 5.4.0-dev.20240107 vs 5.3.3 #56972

Closed
typescript-bot opened this issue Jan 7, 2024 · 11 comments
Closed

[NewErrors] 5.4.0-dev.20240107 vs 5.3.3 #56972

typescript-bot opened this issue Jan 7, 2024 · 11 comments

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 5.4.0-dev.20240107, but not by 5.3.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 119 of 200 visited repos
Outcome Count
Detected interesting changes 10
Detected no interesting changes 109
Git clone failed 3
Package install failed 33
Project-graph error in old TS 4
Too many errors in old TS 35
Unknown failure 6

Investigation Status

Repo Errors Outcome
BuilderIO/qwik 7
drizzle-team/drizzle-orm 16
heyxyz/hey 1
prisma/prisma 10
pubkey/rxdb 3
quilljs/quill 1
react-hook-form/react-hook-form 1
reduxjs/react-redux 2
refined-github/refined-github 5
vuejs/core 3
@typescript-bot
Copy link
Collaborator Author

BuilderIO/qwik

6 of 10 projects failed to build with the old tsc and were ignored

tsconfig.json

@typescript-bot
Copy link
Collaborator Author

drizzle-team/drizzle-orm

18 of 25 projects failed to build with the old tsc and were ignored

drizzle-orm/tests/tsconfig.json

  • error TS2345: Argument of type 'SQLiteD1Session<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2345: Argument of type 'LibSQLSession<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'TFullSchema extends Record<string, never> ? DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB type?"> : { [K in keyof TSchema]: RelationalQueryBuilder<TResultKind, TFullSchema, TSchema, TSchema[K]>; }'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'this["query"]'.

drizzle-orm/tsconfig.dts.json

  • error TS2345: Argument of type 'SQLiteD1Session<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2345: Argument of type 'LibSQLSession<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'TFullSchema extends Record<string, never> ? DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB type?"> : { [K in keyof TSchema]: RelationalQueryBuilder<TResultKind, TFullSchema, TSchema, TSchema[K]>; }'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'this["query"]'.

drizzle-orm/tsconfig.json

  • error TS2345: Argument of type 'SQLiteD1Session<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2345: Argument of type 'LibSQLSession<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'TFullSchema extends Record<string, never> ? DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB type?"> : { [K in keyof TSchema]: RelationalQueryBuilder<TResultKind, TFullSchema, TSchema, TSchema[K]>; }'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'this["query"]'.

drizzle-orm/type-tests/tsconfig.json

  • error TS2345: Argument of type 'SQLiteD1Session<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2345: Argument of type 'LibSQLSession<TSchema, ExtractTablesWithRelations<TSchema>>' is not assignable to parameter of type 'SQLiteSession<"async", unknown, Record<string, unknown>, TablesRelationalConfig>'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'TFullSchema extends Record<string, never> ? DrizzleTypeError<"Seems like the schema generic is missing - did you forget to add it to your DB type?"> : { [K in keyof TSchema]: RelationalQueryBuilder<TResultKind, TFullSchema, TSchema, TSchema[K]>; }'.
  • error TS2536: Type 'keyof TSchema' cannot be used to index type 'this["query"]'.

@typescript-bot
Copy link
Collaborator Author

heyxyz/hey

1 of 11 projects failed to build with the old tsc and were ignored

apps/web/tsconfig.json

@typescript-bot
Copy link
Collaborator Author

prisma/prisma

73 of 103 projects failed to build with the old tsc and were ignored

packages/debug/tsconfig.build.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/debug/tsconfig.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/get-platform/tsconfig.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/engines/tsconfig.build.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/engines/tsconfig.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/generator-helper/tsconfig.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/internals/tsconfig.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/instrumentation/tsconfig.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/client/tsconfig.build.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

packages/cli/tsconfig.build.json

  • error TS2865: Import 'Debug' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.

@typescript-bot
Copy link
Collaborator Author

pubkey/rxdb

9 of 11 projects failed to build with the old tsc and were ignored

tsconfig.json

@typescript-bot
Copy link
Collaborator Author

quilljs/quill

tsconfig.json

@typescript-bot
Copy link
Collaborator Author

react-hook-form/react-hook-form

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

tsconfig.json

@typescript-bot
Copy link
Collaborator Author

reduxjs/react-redux

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

test/typetests/tsconfig.json

@typescript-bot
Copy link
Collaborator Author

refined-github/refined-github

tsconfig.json

@typescript-bot
Copy link
Collaborator Author

vuejs/core

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

tsconfig.build.json

tsconfig.json

@MichaelMitchell-at
Copy link

MichaelMitchell-at commented Jan 10, 2024

Minimal repro of a "cannot be used as an index type" error:

type Type = {prop: 'a', otherProp: unknown}

type X = 'prop' extends keyof Type
    ? Type['prop']
           ^^^^^^ Type '"prop"' cannot be used as an index type.(2538)
    : never;

@ahejlsberg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants