Closed RosyClousXun closed 1 week ago
Please paste error messages, not screenshots.
We can't provide development support via this issue tracker. If you believe there is a defect in matrix-js-sdk, please provide clear reproduction steps.
> vue-tsc --noEmit && vite build
..@.***/node_modules/matrix-js-sdk/src/client.ts:7724:17 - error TS2322: Type 'string' is not assignable to type 'null'.
7724 token = res.next_batch_token;
~
..@.***/node_modules/matrix-js-sdk/src/oidc/validate.ts:114:9 - error TS2344: Type '"issuer" | "authorization_endpoint" | "token_endpoint" | "registration_endpoint" | "revocation_endpoint" | "response_types_supported" | "grant_types_supported" | "code_challenge_methods_supported" | "device_authorization_endpoint"' does not satisfy the constraint 'keyof OidcMetadata'. Type '"device_authorization_endpoint"' is not assignable to type 'keyof OidcMetadata'. Did you mean '"authorization_endpoint"'?
114 | "issuer"
~~
115 | "authorization_endpoint"
~~~~~~~~~~
...
121 | "code_challenge_methods_supported"
~~~~~~~~~~~~
122 | "device_authorization_endpoint"
~~~~~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts:152:34 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
152 messageList.push(${userId}/${deviceId} (msgid ${message[ToDeviceMessageId]})
);
~~~~~~~~~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:439:13 - error TS2322: Type 'KeyBackupInfo | null | undefined' is not assignable to type 'null'. Type 'undefined' is not assignable to type 'null'.
439 currentServerVersion = await this.backupManager.getServerBackupInfo();
~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:445:92 - error TS2339: Property 'version' does not exist on type 'never'.
445 this.logger.debug(Got current backup version from server: ${currentServerVersion?.version}
);
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:447:35 - error TS2339: Property 'algorithm' does not exist on type 'never'.
447 if (currentServerVersion?.algorithm != "m.megolm_backup.v1.curve25519-aes-sha2") {
~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:448:77 - error TS2339: Property 'algorithm' does not exist on type 'never'.
448 this.logger.info(Unsupported algorithm ${currentServerVersion?.algorithm}
);
~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:453:36 - error TS2339: Property 'version' does not exist on type 'never'.
453 if (!currentServerVersion?.version) {
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:460:59 - error TS2339: Property 'version' does not exist on type 'never'.
460 if (activeVersion == null || currentServerVersion.version != activeVersion) {
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:463:83 - error TS2339: Property 'version' does not exist on type 'never'.
463 The current backup version on the server (${currentServerVersion.version}) is not trusted. Version we are currently backing up to: ${activeVersion}
,
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:484:47 - error TS2339: Property 'auth_data' does not exist on type 'never'.
484 const authData = currentServerVersion.auth_data as Curve25519AuthData;
~~~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/call.ts:2397:29 - error TS2345: Argument of type 'RTCRtpCodecCapability' is not assignable to parameter of type 'never'.
2397 codecs.push(codec);
~
..@.***/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts:439:38 - error TS2339: Property 'webkitGetUserMedia' does not exist on type 'Navigator'.
439 const isWebkit = !!navigator.webkitGetUserMedia;
~~~~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts:465:65 - error TS2304: Cannot find name 'DesktopCapturerConstraints'.
465 private getScreenshareContraints(opts: IScreensharingOpts): DesktopCapturerConstraints {
~~~~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts:104:80 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
104 const before = this.previousStatsReport ? this.previousStatsReport.get(now.id) : null; ~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/trackStatsBuilder.ts:43:31 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
43 const codec = report?.get(now.codecId); ~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts:10:44 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
10 const localUsedCandidate = report?.get(now.localCandidateId); ~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts:11:45 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
11 const remoteUsedCandidate = report?.get(now.remoteCandidateId); ~~~
src/utils/workers/playback.worker.ts:18:54 - error TS2307: Cannot find module '../utils/arrays' or its corresponding type declarations.
18 import { arrayRescale, arraySmoothingResample } from "../utils/arrays";
~~~~~
src/utils/workers/playback.worker.ts:19:43 - error TS2307: Cannot find module '../audio/consts' or its corresponding type declarations.
19 import { PLAYBACK_WAVEFORM_SAMPLES } from "../audio/consts";
~~~~~
Found 20 errors in 10 files.
Errors Files 1 ..@./node_modules/matrix-js-sdk/src/client.ts:7724 1 ..@./node_modules/matrix-js-sdk/src/oidc/validate.ts:114 1 ..@./node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts:152 8 ..@./node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:439 1 ..@./node_modules/matrix-js-sdk/src/webrtc/call.ts:2397 2 ..@./node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts:439 1 ..@./node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts:104 1 ..@./node_modules/matrix-js-sdk/src/webrtc/stats/trackStatsBuilder.ts:43 2 ..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts:10 2 src/utils/workers/playback.worker.ts:18 ELIFECYCLE Command failed with exit code 2.
Rosy clouds @.***
------------------ 原始邮件 ------------------ 发件人: "matrix-org/matrix-js-sdk" @.>; 发送时间: 2024年11月6日(星期三) 晚上10:23 @.>; 抄送: "Rosy @.**@.>; 主题: Re: [matrix-org/matrix-js-sdk] vue3 use matrix-js-sdk ,build error , (Issue #4499)
Closed #4499 as completed.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
tsconfig.json 配置如下
> vue-tsc --noEmit && vite build
..@.***/node_modules/matrix-js-sdk/src/client.ts:7724:17 - error TS2322: Type 'string' is not assignable to type 'null'.
7724 token = res.next_batch_token;
~
..@.***/node_modules/matrix-js-sdk/src/oidc/validate.ts:114:9 - error TS2344: Type '"issuer" | "authorization_endpoint" | "token_endpoint" | "registration_endpoint" | "revocation_endpoint" | "response_types_supported" | "grant_types_supported" | "code_challenge_methods_supported" | "device_authorization_endpoint"' does not satisfy the constraint 'keyof OidcMetadata'. Type '"device_authorization_endpoint"' is not assignable to type 'keyof OidcMetadata'. Did you mean '"authorization_endpoint"'?
114 | "issuer"
~~
115 | "authorization_endpoint"
~~~~~~~~~~
...
121 | "code_challenge_methods_supported"
~~~~~~~~~~~~
122 | "device_authorization_endpoint"
~~~~~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts:152:34 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
152 messageList.push(${userId}/${deviceId} (msgid ${message[ToDeviceMessageId]})
);
~~~~~~~~~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:439:13 - error TS2322: Type 'KeyBackupInfo | null | undefined' is not assignable to type 'null'. Type 'undefined' is not assignable to type 'null'.
439 currentServerVersion = await this.backupManager.getServerBackupInfo();
~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:445:92 - error TS2339: Property 'version' does not exist on type 'never'.
445 this.logger.debug(Got current backup version from server: ${currentServerVersion?.version}
);
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:447:35 - error TS2339: Property 'algorithm' does not exist on type 'never'.
447 if (currentServerVersion?.algorithm != "m.megolm_backup.v1.curve25519-aes-sha2") {
~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:448:77 - error TS2339: Property 'algorithm' does not exist on type 'never'.
448 this.logger.info(Unsupported algorithm ${currentServerVersion?.algorithm}
);
~~~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:453:36 - error TS2339: Property 'version' does not exist on type 'never'.
453 if (!currentServerVersion?.version) {
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:460:59 - error TS2339: Property 'version' does not exist on type 'never'.
460 if (activeVersion == null || currentServerVersion.version != activeVersion) {
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:463:83 - error TS2339: Property 'version' does not exist on type 'never'.
463 The current backup version on the server (${currentServerVersion.version}) is not trusted. Version we are currently backing up to: ${activeVersion}
,
~~~
..@.***/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:484:47 - error TS2339: Property 'auth_data' does not exist on type 'never'.
484 const authData = currentServerVersion.auth_data as Curve25519AuthData;
~~~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/call.ts:2397:29 - error TS2345: Argument of type 'RTCRtpCodecCapability' is not assignable to parameter of type 'never'.
2397 codecs.push(codec);
~
..@.***/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts:439:38 - error TS2339: Property 'webkitGetUserMedia' does not exist on type 'Navigator'.
439 const isWebkit = !!navigator.webkitGetUserMedia;
~~~~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts:465:65 - error TS2304: Cannot find name 'DesktopCapturerConstraints'.
465 private getScreenshareContraints(opts: IScreensharingOpts): DesktopCapturerConstraints {
~~~~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts:104:80 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
104 const before = this.previousStatsReport ? this.previousStatsReport.get(now.id) : null; ~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/trackStatsBuilder.ts:43:31 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
43 const codec = report?.get(now.codecId); ~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts:10:44 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
10 const localUsedCandidate = report?.get(now.localCandidateId); ~~~
..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts:11:45 - error TS2339: Property 'get' does not exist on type 'RTCStatsReport'.
11 const remoteUsedCandidate = report?.get(now.remoteCandidateId); ~~~
src/utils/workers/playback.worker.ts:18:54 - error TS2307: Cannot find module '../utils/arrays' or its corresponding type declarations.
18 import { arrayRescale, arraySmoothingResample } from "../utils/arrays";
~~~~~
src/utils/workers/playback.worker.ts:19:43 - error TS2307: Cannot find module '../audio/consts' or its corresponding type declarations.
19 import { PLAYBACK_WAVEFORM_SAMPLES } from "../audio/consts";
~~~~~
Found 20 errors in 10 files.
Errors Files 1 ..@./node_modules/matrix-js-sdk/src/client.ts:7724 1 ..@./node_modules/matrix-js-sdk/src/oidc/validate.ts:114 1 ..@./node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts:152 8 ..@./node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts:439 1 ..@./node_modules/matrix-js-sdk/src/webrtc/call.ts:2397 2 ..@./node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts:439 1 ..@./node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts:104 1 ..@./node_modules/matrix-js-sdk/src/webrtc/stats/trackStatsBuilder.ts:43 2 ..@.***/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts:10 2 src/utils/workers/playback.worker.ts:18 ELIFECYCLE Command failed with exit code 2.
Rosy clouds @.***
------------------ 原始邮件 ------------------ 发件人: "matrix-org/matrix-js-sdk" @.>; 发送时间: 2024年11月6日(星期三) 晚上10:23 @.>; 抄送: "Rosy @.**@.>; 主题: Re: [matrix-org/matrix-js-sdk] vue3 use matrix-js-sdk ,build error , (Issue #4499)
Closed #4499 as completed.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>