Bug description
Steps to reproduce the problem:
- Query a complex selector in a Typescript puppeteer test script
- 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" )
| ^