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] 4.5.0-dev.20210822 vs 4.3.5 #45540

Closed
typescript-bot opened this issue Aug 22, 2021 · 1 comment
Closed

[NewErrors] 4.5.0-dev.20210822 vs 4.3.5 #45540

typescript-bot opened this issue Aug 22, 2021 · 1 comment

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 4.5.0-dev.20210822, but not by 4.3.5

ant-design/ant-design

tsconfig.json

  • error TS2359: The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.

vercel/hyper

2 of 3 projects failed to build with the old tsc

tsconfig.json

styled-components/styled-components

packages/styled-components/tsconfig.json

typeorm/typeorm

tsconfig.json

  • error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.

balena-io/etcher

1 of 2 projects failed to build with the old tsc

tsconfig.webpack.json

homebridge/homebridge

tsconfig.json

rome/tools

tsconfig.json

GeekyAnts/NativeBase

2 of 3 projects failed to build with the old tsc

tsconfig.json

Redocly/redoc

tsconfig.json

  • error TS2801: This condition will always return true since this 'Promise<any>' is always defined.
  • error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.

tsconfig.lib.json

  • error TS2801: This condition will always return true since this 'Promise<any>' is always defined.
  • error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.

GoogleChromeLabs/squoosh

2 of 3 projects failed to build with the old tsc

libsquoosh/tsconfig.json

flatpickr/flatpickr

src/tsconfig.json

  • error TS2571: Object is of type 'unknown'.
  • error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.
  • error TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?

tsconfig.esm.json

  • error TS2571: Object is of type 'unknown'.
  • error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Error'.
  • error TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?

tsconfig.json

sandersn added a commit to microsoft/TypeScript-DOM-lib-generator that referenced this issue Aug 23, 2021
Detected in microsoft/TypeScript#45540, where
it breaks ant-design. `x instanceof HTMLDocument` no longer works.

This is likely worth fixing before the release of 4.4.
@andrewbranch
Copy link
Member

The one in ant-design is being fixed by microsoft/TypeScript-DOM-lib-generator#1116 for 4.4 stable. Everything else looks expected.

The msMaxTouchPoints removal is documented in microsoft/TypeScript-DOM-lib-generator#1029.

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

2 participants