-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I follow the installation steps given in the file README.md. (Since I use Ubuntu 24.04, I had to run sudo npm i -g typescript.) Now I get this error:
$ tsc
node_modules/@types/node/globals.d.ts:233:11 - error TS2430: Interface 'Buffer' incorrectly extends interface 'Uint8Array<ArrayBufferLike>'.
The types of 'slice(...).buffer' are incompatible between these types.
Type 'ArrayBufferLike' is not assignable to type 'ArrayBuffer'.
Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'.
Types of property '[Symbol.toStringTag]' are incompatible.
Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'.
233 interface Buffer extends Uint8Array {
~~~~~~
node_modules/@types/puppeteer/index.d.ts:26:46 - error TS2304: Cannot find name 'Element'.
26 export type WrapElementHandle<X> = X extends Element ? ElementHandle<X> : X;
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:62:29 - error TS2304: Cannot find name 'Element'.
62 pageFunction: (element: Element) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:78:29 - error TS2304: Cannot find name 'Element'.
78 pageFunction: (element: Element, x1: UnwrapElementHandle<X1>) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:96:29 - error TS2304: Cannot find name 'Element'.
96 pageFunction: (element: Element, x1: UnwrapElementHandle<X1>, x2: UnwrapElementHandle<X2>) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:116:29 - error TS2304: Cannot find name 'Element'.
116 pageFunction: (element: Element, x1: UnwrapElementHandle<X1>, x2: UnwrapElementHandle<X2>, x3: UnwrapElementHandle<X3>) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:135:29 - error TS2304: Cannot find name 'Element'.
135 pageFunction: (element: Element, ...args: any[]) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:151:30 - error TS2304: Cannot find name 'Element'.
151 pageFunction: (elements: Element[]) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:167:30 - error TS2304: Cannot find name 'Element'.
167 pageFunction: (elements: Element[], x1: UnwrapElementHandle<X1>) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:185:30 - error TS2304: Cannot find name 'Element'.
185 pageFunction: (elements: Element[], x1: UnwrapElementHandle<X1>, x2: UnwrapElementHandle<X2>) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:205:30 - error TS2304: Cannot find name 'Element'.
205 pageFunction: (elements: Element[], x1: UnwrapElementHandle<X1>, x2: UnwrapElementHandle<X2>, x3: UnwrapElementHandle<X3>) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:224:30 - error TS2304: Cannot find name 'Element'.
224 pageFunction: (elements: Element[], ...args: any[]) => R | Promise<R>,
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:778:42 - error TS2304: Cannot find name 'Element'.
778 export interface ElementHandle<E extends Element = Element> extends JSHandle<E>, Evalable {
~~~~~~~
node_modules/@types/puppeteer/index.d.ts:778:52 - error TS2304: Cannot find name 'Element'.
778 export interface ElementHandle<E extends Element = Element> extends JSHandle<E>, Evalable {
~~~~~~~
Found 14 errors in 2 files.
Errors Files
1 node_modules/@types/node/globals.d.ts:233
13 node_modules/@types/puppeteer/index.d.ts:26
Is this some issue of different versions of the underlying tools?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels