Description
Hi, i am making 'task' server, based on playwright and using TypeScript in my project.
Problem is - when i add any import from playwright, 'tsc' command start pulling into me alot of errors.
> tsc
node_modules / playwright / types / types.d.ts: 41: 33 - error TS2304: Cannot find name 'Node'.
41 type SmartHandle = T extends Node? ElementHandle : JSHandle ;
~~~~node_modules / playwright / types / types.d.ts: 42: 42 - error TS2304: Cannot find name 'HTMLElementTagNameMap'.
42 type ElementHandleForTag = ElementHandle <HTMLElementTagNameMap [K]>;
~~~~~~~~~~~~~~~~~~~~ ~node_modules / playwright / types / types.d.ts: 42: 81 - error TS2304: Cannot find name 'HTMLElementTagNameMap'.
42 type ElementHandleForTag = ElementHandle <HTMLElementTagNameMap [K]>;
~~~~~~~~~~~~~~~~~~~~ ~
And, much more lines .....
May some body know, what is happend? And how to fix it.