Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while setting up #274

Open
PrathapJ4 opened this issue May 23, 2023 · 2 comments
Open

error while setting up #274

PrathapJ4 opened this issue May 23, 2023 · 2 comments

Comments

@PrathapJ4
Copy link

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/client/BaseClient.ts
5:71-73
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/client/BaseClient.ts(5,72)
TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts
77:16-20
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts(77,17)
TS2339: Property 'rows' does not exist on type 'ITerminalDimensions | undefined'.
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts
77:22-26
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts(77,23)
TS2339: Property 'cols' does not exist on type 'ITerminalDimensions | undefined'.
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts
106:16-20
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts(106,17)
TS2339: Property 'rows' does not exist on type 'ITerminalDimensions | undefined'.
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts
106:22-26
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/client/ShellClient.ts(106,23)
TS2339: Property 'cols' does not exist on type 'ITerminalDimensions | undefined'.
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/filePush/FilePushHandler.ts
55:16-47
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/app/googDevice/filePush/FilePushHandler.ts(55,17)
TS2552: Cannot find name 'ReadableStreamDefaultReadResult'. Did you mean 'ReadableStreamDefaultReader'?
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/CloseEventClass.ts
./src/packages/multiplexer/CloseEventClass.ts 3:13-24
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/CloseEventClass.ts(3,14)
TS2420: Class 'CloseEvent2' incorrectly implements interface 'CloseEvent'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/packages/multiplexer/Multiplexer.ts 9:24-52
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/ErrorEventClass.ts
./src/packages/multiplexer/ErrorEventClass.ts 3:13-24
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/ErrorEventClass.ts(3,14)
TS2420: Class 'ErrorEvent2' incorrectly implements interface 'ErrorEvent'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/packages/multiplexer/Multiplexer.ts 10:24-52
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Message.ts
./src/packages/multiplexer/Message.ts 54:8-58:11
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Message.ts(54,9)
TS2322: Type 'CloseEvent | CloseEvent2' is not assignable to type 'CloseEvent'.
Type 'CloseEvent2' is not assignable to type 'CloseEvent'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/packages/multiplexer/Multiplexer.ts 6:16-36
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/MessageEventClass.ts
./src/packages/multiplexer/MessageEventClass.ts 3:13-26
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/MessageEventClass.ts(3,14)
TS2420: Class 'MessageEvent2' incorrectly implements interface 'MessageEvent'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/packages/multiplexer/Multiplexer.ts 11:26-56
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 105:46-49
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(105,47)
TS2345: Argument of type 'MessageEvent2 | MessageEvent' is not assignable to parameter of type 'Event'.
Type 'MessageEvent2' is not assignable to type 'Event'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 121:46-49
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(121,47)
TS2345: Argument of type 'MessageEvent2 | MessageEvent' is not assignable to parameter of type 'Event'.
Type 'MessageEvent2' is not assignable to type 'Event'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 137:46-49
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(137,47)
TS2345: Argument of type 'MessageEvent2 | MessageEvent' is not assignable to parameter of type 'Event'.
Type 'MessageEvent2' is not assignable to type 'Event'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 160:39-78
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(160,40)
TS2345: Argument of type 'ErrorEvent | ErrorEvent2' is not assignable to parameter of type 'Event'.
Type 'ErrorEvent2' is not assignable to type 'Event'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 245:35-81
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(245,36)
TS2345: Argument of type 'CloseEvent | CloseEvent2' is not assignable to parameter of type 'CloseEvent'.
Type 'CloseEvent2' is not assignable to type 'CloseEvent'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 259:93-97
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(259,94)
TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'ArrayBufferLike | Blob | ArrayBufferView' is not assignable to parameter of type 'WithImplicitCoercion | { Symbol.toPrimitive: string; }'.
Type 'ArrayBuffer' is not assignable to type 'WithImplicitCoercion | { Symbol.toPrimitive: string; }'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 267:80-84
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(267,81)
TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'string | ArrayBufferLike | Blob | ArrayBufferView' is not assignable to parameter of type 'WithImplicitCoercion | { Symbol.toPrimitive: string; }'.
Type 'ArrayBuffer' is not assignable to type 'WithImplicitCoercion | { Symbol.toPrimitive: string; }'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts
./src/packages/multiplexer/Multiplexer.ts 295:42-64
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/packages/multiplexer/Multiplexer.ts(295,43)
TS2345: Argument of type 'Event | Event2' is not assignable to parameter of type 'Event'.
Type 'Event2' is not assignable to type 'Event'.
Types of property 'NONE' are incompatible.
Type 'number' is not assignable to type '0'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/mw/WebsocketMultiplexer.ts 7:20-69
@ ./src/server/index.ts 11:29-65

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/Utils.ts
./src/server/Utils.ts 23:16-20
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/Utils.ts(23,17)
TS18048: 'info' is possibly 'undefined'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/services/HttpServer.ts 8:14-33
@ ./src/server/index.ts 7:19-51

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/goog-device/filePush/FilePushReader.ts
./src/server/goog-device/filePush/FilePushReader.ts 194:59-74
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/goog-device/filePush/FilePushReader.ts(194,60)
TS2345: Argument of type 'ReadStream' is not assignable to parameter of type 'string | ReadStream'.
Property 'pending' is missing in type 'import("/Users/crackle-qa/projects/ws-scrcpy/src/server/goog-device/filePush/ReadStream").ReadStream' but required in type 'import("fs").ReadStream'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/goog-device/mw/FileListing.ts 10:23-60
@ ./src/server/index.ts 47:96-135

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/goog-device/filePush/ReadStream.ts
./src/server/goog-device/filePush/ReadStream.ts 18:33-41
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/goog-device/filePush/ReadStream.ts(18,34)
TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'BufferEncoding | undefined'.
Type 'string' is not assignable to type 'BufferEncoding | undefined'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/server/goog-device/filePush/FilePushReader.ts 7:19-42
@ ./src/server/goog-device/mw/FileListing.ts 10:23-60
@ ./src/server/index.ts 47:96-135

ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/services/ProcessRunner.ts
59:31-47
[tsl] ERROR in /Users/crackle-qa/projects/ws-scrcpy/src/server/services/ProcessRunner.ts(59,32)
TS2345: Argument of type '{ code: number | null; signal: NodeJS.Signals | null; }' is not assignable to parameter of type 'T["close"]'.
'T["close"]' could be instantiated with an arbitrary type which could be unrelated to '{ code: number | null; signal: NodeJS.Signals | null; }'.
ts-loader-default_e3b0c44298fc1c14

webpack 5.83.1 compiled with 22 errors in 18907 ms

@drauggres
Copy link
Collaborator

Hi.
Please try to run npm ci instead of npm install. I think you have newer version of some "types" dependencies installed. The npm ci command should install the exact versions specified in the package-lock.json.

@carylewis
Copy link

After cloning the repo and running npm ci, I get these errors:

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/unix/pty.cc:20:
npm ERR! In file included from ../../nan/nan.h:180:
npm ERR! ../../nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
npm ERR! typedef v8::Local<v8::AccessorSignature> Sig;
npm ERR!                   ~~~~^
npm ERR! In file included from ../src/unix/pty.cc:20:

If I run npm-check-updates -u

Then I can run npm install, but when I try to use npm start I get these errors:


ERROR in /Users/clewis/ws-scrcpy/src/app/client/BaseClient.ts
5:71-73
[tsl] ERROR in /Users/clewis/ws-scrcpy/src/app/client/BaseClient.ts(5,72)
      TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
ts-loader-default_e3b0c44298fc1c14

ERROR in /Users/clewis/ws-scrcpy/src/app/googDevice/client/ShellClient.ts
77:16-20
[tsl] ERROR in /Users/clewis/ws-scrcpy/src/app/googDevice/client/ShellClient.ts(77,17)
      TS2339: Property 'rows' does not exist on type 'ITerminalDimensions | undefined'.
ts-loader-default_e3b0c44298fc1c14

plus many more TS errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants