Skip to content

TypeScript 4.9 does not build Playwright anymoreΒ #51619

Closed
microsoft/playwright
#19280
@mxschmitt

Description

@mxschmitt

Bug Report

πŸ”Ž Search Terms

conditional types, 4.9, infer, regression

πŸ•— Version & Regression Information

bad : 4.9.0-dev.20220827
not available on NPM : 4.9.0-dev.20220826
good : 4.9.0-dev.20220825

⏯ Playground Link

Wasn't able to make a small independent repro out of it, but these are the repro steps:

git clone https://github.com/microsoft/playwright
cd playwright
npm ci
# make it TypeScript 4.9 compatible
npm i -D @types/[email protected]
npm i -D [email protected]
npm run tsc

πŸ™ Actual behavior

Does not transpile, a lot of weird errors which did not make sense to me.

πŸ™‚ Expected behavior

It compiles without any errors.

cc @andrewbranch @DanielRosenwasser since both interacted with Playwright and TypeScript before to try out the new RCs.

Metadata

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions