Skip to content

Regression: Incorrect parse error when decorated class member follows non-semicolon-terminated property declaration #45155

Description

@typescript-bot

The following errors were reported by 4.4.0-dev.20210722, but not by 4.3.5

ant-design/ant-design

tsconfig.json

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

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

sindresorhus/refined-github

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'.

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScript

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions