Skip to content

[Bug]: Type error: Type instantiation is excessively deep and possibly infinite. #9369

@RomkeSandwave

Description

@RomkeSandwave

Bug description

Steps to reproduce the problem:

  1. Query a complex selector in a Typescript puppeteer test script
  2. Typescript complains that resolving the return type takes too many steps: Type error: Type instantiation is excessively deep and possibly infinite.

Puppeteer version

19.3.0

Node.js version

16.18.1

npm version

yarn 1.22.19

What operating system are you seeing the problem on?

Linux

Configuration file

No response

Relevant log output

Type error: Type instantiation is excessively deep and possibly infinite.

  70 | 
> 71 |     const rows = await page.$$( "[data-testid=\"my-component\"] tbody tr" )
     |                        ^

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions