Ajantha Bandara
Ajantha Bandara

Reputation: 1551

export declare type ResourceType = Lowercase<Protocol.Network.ResourceType>, Error building nodejs app with Puppeteer and typescript

I'm working on a nodejs project to generate PDFs using Puppeteer in server side. In there I'm using typescript and current version of the Puppeteer is 8.0.0(provides it's own type definitions).

But in the build process, getting the below error

enter image description here

In the types.d.ts file also I can see Lowercase is not defined.

Does anyone knows what is the error?

Upvotes: 5

Views: 1306

Answers (1)

Cihat Uysal
Cihat Uysal

Reputation: 61

just change your typescript version to "typescript": "^4.2.3" in package.json file.

Upvotes: 6

Related Questions