puppeteer: Typings issues with version 8.0.0 - Cannot find name 'Lowercase'
Steps to reproduce
Tell us about your environment:
- Puppeteer version: 8.0.0
- Platform / OS version: Mac OS Big Sur
- Node.js version: 12.20.1
What steps will reproduce the problem?
- Install,
npm i (with the 8.0.0 version)
- Build,
npm run build
What is the expected result? Project build successfully
What happens instead? Typings issues :
node_modules/puppeteer/lib/types.d.ts:24083:36 - error TS2304: Cannot find name 'Lowercase'.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 19
- Comments: 15
Confirmed updating Typescript from v3.9.x to ^4.0 resolves this issue
npm i -D typescript@^4.0
I would suggest updating the package dependencies to suit
Lowercase<T>
was introduced with TypeScript 4.1, so using any version newer then that should fix this problem.I confirm upgrading typescript to 4.2.4 works. Closing the issue. Thanks all.
Just ran into the same issue on our CI after upgrading to 8.0.0. Rolled back to 7.1.0, and don’t have the issue anymore.
Anyone managed to fix that issue?
I just created a definition file that I added to my tsconfig.json including:
And that fixed it for now. Not ideal though.
Had the same issue. I upgraded the typescript from 3.9 to 4.1 and it solved the problem. Thanks to @dbryar