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

TS2344: Type 'TE' does not satisfy the constraint 'EventMap'. #286

Open
qiangzeliang opened this issue Oct 27, 2023 · 0 comments
Open

TS2344: Type 'TE' does not satisfy the constraint 'EventMap'. #286

qiangzeliang opened this issue Oct 27, 2023 · 0 comments

Comments

@qiangzeliang
Copy link

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

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

webpack 5.89.0 compiled with 2 errors in 18312 ms
PS D:\Demoheji\touping\ws-scrcpy> ^C
PS D:\Demoheji\touping\ws-scrcpy> ^C
PS D:\Demoheji\touping\ws-scrcpy> npm start

ws-scrcpy@0.8.1-dev start
npm run dist && cd dist && npm start

ws-scrcpy@0.8.1-dev dist
npm run dist:prod

ws-scrcpy@0.8.1-dev dist:prod
webpack --config webpack/ws-scrcpy.prod.ts --stats-error-details

assets by status 1.03 MiB [cached] 7 assets
Entrypoint main = main.css bundle.js 3 auxiliary assets
orphan modules 34.4 KiB (javascript) 6.44 KiB (runtime) [orphan] 43 modules
runtime modules 1.77 KiB 5 modules
javascript modules 1.07 MiB
modules by path ./src/ 409 KiB 100 modules
modules by path ./node_modules/ 601 KiB 26 modules
modules by path ./vendor/ 82.8 KiB 21 modules
external "fs" 42 bytes [built] [code generated]
css modules 23.7 KiB
css ./node_modules/css-loader/dist/cjs.js!./src/style/app.css 4.12 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/devicelist.css 4.82 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/xterm/css/xterm.css 4.3 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/devtools.css 2.04 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/filelisting.css 4.97 KiB [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/morebox.css 701 bytes [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./src/style/dialog.css 2.82 KiB [built] [code generated]

ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\client\BaseClient.ts
./src/app/client/BaseClient.ts 5:71-73
[tsl] ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\client\BaseClient.ts(5,72)
TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/app/googDevice/client/StreamClientScrcpy.ts 5:19-53
@ ./src/app/index.ts 5:27-76

ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts
./src/app/googDevice/filePush/FilePushHandler.ts 60:25-31
[tsl] ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts(60,26)
TS2322: Type 'ReadableStreamReadResult' is not assignable to type 'ReadableStreamDefaultReader'.
Type 'ReadableStreamReadValueResult' is missing the following properties from type 'ReadableStreamDefaultReader': read, releaseLock, closed, cancel
ts-loader-default_e3b0c44298fc1c14
@ ./src/app/googDevice/client/StreamClientScrcpy.ts 12:48-86
@ ./src/app/index.ts 5:27-76

ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts
./src/app/googDevice/filePush/FilePushHandler.ts 129:27-33
[tsl] ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts(129,28)
TS2345: Argument of type 'ReadableStreamDefaultReader' is not assignable to parameter of type '{ done: boolean; value?: Uint8Array | undefined; }'.
Property 'done' is missing in type 'ReadableStreamDefaultReader' but required in type '{ done: boolean; value?: Uint8Array | undefined; }'.
ts-loader-default_e3b0c44298fc1c14
@ ./src/app/googDevice/client/StreamClientScrcpy.ts 12:48-86
@ ./src/app/index.ts 5:27-76

webpack 5.89.0 compiled with 3 errors in 26421 ms

assets by status 208 KiB [cached] 5 assets
runtime modules 697 bytes 4 modules
cacheable modules 194 KiB
modules by path ./src/server/ 147 KiB 28 modules
modules by path ./src/common/.ts 6.49 KiB 7 modules
modules by path ./src/packages/multiplexer/
.ts 22.3 KiB 7 modules
modules by path ./src/app/ 17.6 KiB 4 modules
modules by path ./vendor/Genymobile/scrcpy/ 162 bytes 2 modules

  • 2 modules
    modules by path external "@dead50f7/adbkit/lib/ 210 bytes
    external "@dead50f7/adbkit/lib/adb/protocol" 42 bytes [built] [code generated]
    external "@dead50f7/adbkit/lib/adb" 42 bytes [built] [code generated]
    external "@dead50f7/adbkit/lib/adb/sync/entry" 42 bytes [built] [code generated]
    external "@dead50f7/adbkit/lib/adb/client" 42 bytes [built] [code generated]
    external "@dead50f7/adbkit/lib/adb/command" 42 bytes [built] [code generated]
  • 18 modules

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

ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts
60:25-31
[tsl] ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts(60,26)
TS2322: Type 'ReadableStreamReadResult' is not assignable to type 'ReadableStreamDefaultReader'.
Type 'ReadableStreamReadValueResult' is missing the following properties from type 'ReadableStreamDefaultReader': read, releaseLock, closed, cancel
ts-loader-default_e3b0c44298fc1c14

ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts
129:27-33
[tsl] ERROR in D:\Demoheji\touping\ws-scrcpy\src\app\googDevice\filePush\FilePushHandler.ts(129,28)
TS2345: Argument of type 'ReadableStreamDefaultReader' is not assignable to parameter of type '{ done: boolean; value?: Uint8Array | undefined; }'.
Property 'done' is missing in type 'ReadableStreamDefaultReader' but required in type '{ done: boolean; value?: Uint8Array | undefined; }'.
ts-loader-default_e3b0c44298fc1c14

BiteFoo added a commit to BiteFoo/ws-scrcpy that referenced this issue Jan 17, 2024
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

1 participant