-
Notifications
You must be signed in to change notification settings - Fork 136
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
yarn build编译出现错误 #19
Comments
你升级一下 ts 试试: |
ok |
237 interface Buffer extends Uint8Array { src/secFile.ts:67:9 - error TS2322: Type 'Buffer' is not assignable to type 'Uint8Array'. 67 decipher.update(fs.readFileSync(this.fileName)), src/secFile.ts:68:9 - error TS2322: Type 'Buffer' is not assignable to type 'Uint8Array'. 68 decipher.final(), ../../../node_modules/@types/web-bluetooth/index.d.ts:17:27 - error TS2304: Cannot find name 'BufferSource'. 17 readonly dataPrefix?: BufferSource | undefined; ../../../node_modules/@types/web-bluetooth/index.d.ts:18:21 - error TS2304: Cannot find name 'BufferSource'. 18 readonly mask?: BufferSource | undefined; ../../../node_modules/@types/web-bluetooth/index.d.ts:58:45 - error TS2304: Cannot find name 'Event'. 58 interface BluetoothAdvertisingEvent extends Event { ../../../node_modules/@types/web-bluetooth/index.d.ts:74:23 - error TS2304: Cannot find name 'BufferSource'. 74 writeValue(value: BufferSource): Promise; ../../../node_modules/@types/web-bluetooth/index.d.ts:90:52 - error TS2304: Cannot find name 'Event'. 90 oncharacteristicvaluechanged: (this: this, ev: Event) => any; ../../../node_modules/@types/web-bluetooth/index.d.ts:93:53 - error TS2304: Cannot find name 'EventTarget'. 93 interface BluetoothRemoteGATTCharacteristic extends EventTarget, CharacteristicEventHandlers { ../../../node_modules/@types/web-bluetooth/index.d.ts:101:23 - error TS2304: Cannot find name 'BufferSource'. 101 writeValue(value: BufferSource): Promise; ../../../node_modules/@types/web-bluetooth/index.d.ts:102:35 - error TS2304: Cannot find name 'BufferSource'. 102 writeValueWithResponse(value: BufferSource): Promise; ../../../node_modules/@types/web-bluetooth/index.d.ts:103:38 - error TS2304: Cannot find name 'BufferSource'. 103 writeValueWithoutResponse(value: BufferSource): Promise; ../../../node_modules/@types/web-bluetooth/index.d.ts:106:85 - error TS2304: Cannot find name 'Event'. 106 addEventListener(type: "characteristicvaluechanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:107:46 - error TS2304: Cannot find name 'EventListenerOrEventListenerObject'. 107 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:111:38 - error TS2304: Cannot find name 'Event'. 111 onserviceadded: (this: this, ev: Event) => any; ../../../node_modules/@types/web-bluetooth/index.d.ts:112:40 - error TS2304: Cannot find name 'Event'. 112 onservicechanged: (this: this, ev: Event) => any; ../../../node_modules/@types/web-bluetooth/index.d.ts:113:40 - error TS2304: Cannot find name 'Event'. 113 onserviceremoved: (this: this, ev: Event) => any; ../../../node_modules/@types/web-bluetooth/index.d.ts:116:46 - error TS2304: Cannot find name 'EventTarget'. 116 interface BluetoothRemoteGATTService extends EventTarget, CharacteristicEventHandlers, ServiceEventHandlers { ../../../node_modules/@types/web-bluetooth/index.d.ts:124:71 - error TS2304: Cannot find name 'Event'. 124 addEventListener(type: "serviceadded", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:125:73 - error TS2304: Cannot find name 'Event'. 125 addEventListener(type: "servicechanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:126:73 - error TS2304: Cannot find name 'Event'. 126 addEventListener(type: "serviceremoved", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:127:46 - error TS2304: Cannot find name 'EventListenerOrEventListenerObject'. 127 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:141:48 - error TS2304: Cannot find name 'Event'. 141 ongattserverdisconnected: (this: this, ev: Event) => any; ../../../node_modules/@types/web-bluetooth/index.d.ts:145:14 - error TS2304: Cannot find name 'AbortSignal'. 145 signal?: AbortSignal; ../../../node_modules/@types/web-bluetooth/index.d.ts:148:35 - error TS2304: Cannot find name 'EventTarget'. 148 interface BluetoothDevice extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers { ../../../node_modules/@types/web-bluetooth/index.d.ts:155:81 - error TS2304: Cannot find name 'Event'. 155 addEventListener(type: "gattserverdisconnected", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:157:46 - error TS2304: Cannot find name 'EventListenerOrEventListenerObject'. 157 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:160:29 - error TS2304: Cannot find name 'EventTarget'. 160 interface Bluetooth extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers { ../../../node_modules/@types/web-bluetooth/index.d.ts:163:45 - error TS2304: Cannot find name 'Event'. 163 onavailabilitychanged: (this: this, ev: Event) => any; ../../../node_modules/@types/web-bluetooth/index.d.ts:167:78 - error TS2304: Cannot find name 'Event'. 167 addEventListener(type: "availabilitychanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; ../../../node_modules/@types/web-bluetooth/index.d.ts:169:46 - error TS2304: Cannot find name 'EventListenerOrEventListenerObject'. 169 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; Found 31 errors in 3 files. Errors Files |
node v22.11.0
yarn 1.22.22
[email protected]
C:\Users\xxxxxx\Downloads\GitkrakenCrack\GitkrakenCrack\GitCracken>yarn build
yarn run v1.22.22
warning ........\package.json: No license field
$ rimraf dist && tsc
../../../../node_modules/@types/lodash/common/common.d.ts:262:40 - error TS1110: Type expected.
262 type StringToNumber = T extends
${infer N extends number}
? N : never;~~~
../../../../node_modules/@types/lodash/common/common.d.ts:262:49 - error TS1005: '}' expected.
262 type StringToNumber = T extends
${infer N extends number}
? N : never;~
../../../../node_modules/@types/lodash/common/common.d.ts:262:51 - error TS1005: ';' expected.
262 type StringToNumber = T extends
${infer N extends number}
? N : never;~~~~~~~
../../../../node_modules/@types/lodash/common/common.d.ts:284:1 - error TS1160: Unterminated template literal.
284
../../../../node_modules/@types/lodash/common/object.d.ts:1026:21 - error TS1110: Type expected.
1026 : K extends
${infer N extends number}
? T[N]~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1026:30 - error TS1005: '}' expected.
1026 : K extends
${infer N extends number}
? T[N]~
../../../../node_modules/@types/lodash/common/object.d.ts:1026:32 - error TS1005: ';' expected.
1026 : K extends
${infer N extends number}
? T[N]~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1031:22 - error TS1005: ';' expected.
1031 : K extends
${infer N extends number}
? T[N]~
../../../../node_modules/@types/lodash/common/object.d.ts:1031:23 - error TS1005: ';' expected.
1031 : K extends
${infer N extends number}
? T[N]~
../../../../node_modules/@types/lodash/common/object.d.ts:1031:30 - error TS1005: ';' expected.
1031 : K extends
${infer N extends number}
? T[N]~
../../../../node_modules/@types/lodash/common/object.d.ts:1031:32 - error TS1005: ';' expected.
1031 : K extends
${infer N extends number}
? T[N]~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1040:16 - error TS1005: ';' expected.
1040 ?
${K}
extends keyof T ? T[${K}
] : undefined~
../../../../node_modules/@types/lodash/common/object.d.ts:1040:17 - error TS1005: ';' expected.
1040 ?
${K}
extends keyof T ? T[${K}
] : undefined~
../../../../node_modules/@types/lodash/common/object.d.ts:1040:43 - error TS1005: ';' expected.
1040 ?
${K}
extends keyof T ? T[${K}
] : undefined~
../../../../node_modules/@types/lodash/common/object.d.ts:1040:44 - error TS1005: ';' expected.
1040 ?
${K}
extends keyof T ? T[${K}
] : undefined~
../../../../node_modules/@types/lodash/common/object.d.ts:1041:22 - error TS1005: ';' expected.
1041 : K extends
${infer N extends number}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1041:23 - error TS1005: ';' expected.
1041 : K extends
${infer N extends number}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1041:30 - error TS1005: ';' expected.
1041 : K extends
${infer N extends number}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1041:32 - error TS1005: ';' expected.
1041 : K extends
${infer N extends number}
~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1047:20 - error TS1005: ';' expected.
1047 P extends
${infer L}.${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1047:21 - error TS1005: ';' expected.
1047 P extends
${infer L}.${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1047:28 - error TS1005: ';' expected.
1047 P extends
${infer L}.${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1047:30 - error TS1128: Declaration or statement expected.
1047 P extends
${infer L}.${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1047:32 - error TS1005: ';' expected.
1047 P extends
${infer L}.${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1047:39 - error TS1005: ';' expected.
1047 P extends
${infer L}.${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1056:24 - error TS1005: ';' expected.
1056 : R extends
.${infer Rc}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1056:31 - error TS1005: ';' expected.
1056 : R extends
.${infer Rc}
~~
../../../../node_modules/@types/lodash/common/object.d.ts:1070:28 - error TS1005: ';' expected.
1070 : R extends
.${infer Rc}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1070:35 - error TS1005: ';' expected.
1070 : R extends
.${infer Rc}
~~
../../../../node_modules/@types/lodash/common/object.d.ts:1073:22 - error TS1005: ';' expected.
1073 : L extends
${infer Lc}.
~
../../../../node_modules/@types/lodash/common/object.d.ts:1073:23 - error TS1005: ';' expected.
1073 : L extends
${infer Lc}.
~
../../../../node_modules/@types/lodash/common/object.d.ts:1073:30 - error TS1005: ';' expected.
1073 : L extends
${infer Lc}.
~~
../../../../node_modules/@types/lodash/common/object.d.ts:1073:33 - error TS1128: Declaration or statement expected.
1073 : L extends
${infer Lc}.
~
../../../../node_modules/@types/lodash/common/object.d.ts:1081:22 - error TS1005: ';' expected.
1081 : X extends
${infer L}['${infer K}']${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1081:23 - error TS1005: ';' expected.
1081 : X extends
${infer L}['${infer K}']${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1081:30 - error TS1005: ';' expected.
1081 : X extends
${infer L}['${infer K}']${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1081:46 - error TS1005: ';' expected.
1081 : X extends
${infer L}['${infer K}']${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1081:47 - error TS1005: ';' expected.
1081 : X extends
${infer L}['${infer K}']${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1081:54 - error TS1005: ';' expected.
1081 : X extends
${infer L}['${infer K}']${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1083:22 - error TS1005: ';' expected.
1083 : X extends
${infer L}["${infer K}"]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1083:23 - error TS1005: ';' expected.
1083 : X extends
${infer L}["${infer K}"]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1083:30 - error TS1005: ';' expected.
1083 : X extends
${infer L}["${infer K}"]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1083:46 - error TS1005: ';' expected.
1083 : X extends
${infer L}["${infer K}"]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1083:47 - error TS1005: ';' expected.
1083 : X extends
${infer L}["${infer K}"]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1083:54 - error TS1005: ';' expected.
1083 : X extends
${infer L}["${infer K}"]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:22 - error TS1005: ';' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:23 - error TS1005: ';' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:30 - error TS1005: ';' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:34 - error TS1005: ',' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:41 - error TS1005: ',' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:44 - error TS1005: ';' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:45 - error TS1005: ';' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1085:52 - error TS1005: ';' expected.
1085 : X extends
${infer L}[${infer K}]${infer R}
~
../../../../node_modules/@types/lodash/common/object.d.ts:1365:23 - error TS1005: ';' expected.
1365 * Checks if
path
is a direct property ofobject
.~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1365:54 - error TS1005: ';' expected.
1365 * Checks if
path
is a direct property ofobject
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1370:30 - error TS1005: ';' expected.
1370 * @returns Returns
true
ifpath
exists, elsefalse
.~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1370:40 - error TS1005: ';' expected.
1370 * @returns Returns
true
ifpath
exists, elsefalse
.~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1370:60 - error TS1005: ';' expected.
1370 * @returns Returns
true
ifpath
exists, elsefalse
.~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1405:23 - error TS1005: ';' expected.
1405 * Checks if
path
is a direct or inherited property ofobject
.~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1405:67 - error TS1005: ';' expected.
1405 * Checks if
path
is a direct or inherited property ofobject
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1410:30 - error TS1005: ';' expected.
1410 * @returns Returns
true
ifpath
exists, elsefalse
.~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1410:40 - error TS1005: ';' expected.
1410 * @returns Returns
true
ifpath
exists, elsefalse
.~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1410:60 - error TS1005: ';' expected.
1410 * @returns Returns
true
ifpath
exists, elsefalse
.~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1814:16 - error TS1005: ';' expected.
1814 * to
undefined
. Array and plain object properties are merged recursively.~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1819:43 - error TS1005: ';' expected.
1819 * Note: This method mutates
object
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1824:30 - error TS1005: ';' expected.
1824 * @returns Returns
object
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1905:33 - error TS1005: ';' expected.
1905 * This method is like
_.merge
except that it acceptscustomizer
which~
../../../../node_modules/@types/lodash/common/object.d.ts:1905:66 - error TS1005: ';' expected.
1905 * This method is like
_.merge
except that it acceptscustomizer
which~~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1907:28 - error TS1005: ';' expected.
1907 * properties. If
customizer
returnsundefined
merging is handled by the~~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1907:49 - error TS1005: ';' expected.
1907 * properties. If
customizer
returnsundefined
merging is handled by the~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1908:33 - error TS1005: ';' expected.
1908 * method instead. The
customizer
is invoked with seven arguments:~~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:1915:30 - error TS1005: ';' expected.
1915 * @returns Returns
object
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2001:29 - error TS1005: ';' expected.
2001 * The opposite of
_.pick
; this method creates an object composed of the~
../../../../node_modules/@types/lodash/common/object.d.ts:2002:56 - error TS1005: ';' expected.
2002 * own and inherited enumerable properties of
object
that are not omitted.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2063:29 - error TS1005: ';' expected.
2063 * The opposite of
_.pickBy
; this method creates an object composed of the~
../../../../node_modules/@types/lodash/common/object.d.ts:2064:56 - error TS1005: ';' expected.
2064 * own and inherited enumerable properties of
object
thatpredicate
~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2064:70 - error TS1005: ';' expected.
2064 * own and inherited enumerable properties of
object
thatpredicate
~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2114:54 - error TS1005: ';' expected.
2114 * Creates an object composed of the picked
object
properties.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2156:47 - error TS1005: ';' expected.
2156 * Creates an object composed of the
object
propertiespredicate
returns~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2156:67 - error TS1005: ';' expected.
2156 * Creates an object composed of the
object
propertiespredicate
returns~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2506:33 - error TS1005: ';' expected.
2506 * This method is like
_.update
except that it acceptscustomizer
which is~
../../../../node_modules/@types/lodash/common/object.d.ts:2506:67 - error TS1005: ';' expected.
2506 * This method is like
_.update
except that it acceptscustomizer
which is~~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2507:47 - error TS1005: ';' expected.
2507 * invoked to produce the objects of
path
. Ifcustomizer
returnsundefined
~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2507:59 - error TS1005: ';' expected.
2507 * invoked to produce the objects of
path
. Ifcustomizer
returnsundefined
~~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2507:80 - error TS1005: ';' expected.
2507 * invoked to produce the objects of
path
. Ifcustomizer
returnsundefined
~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2508:65 - error TS1005: ';' expected.
2508 * path creation is handled by the method instead. The
customizer
is invoked~~~~~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2511:43 - error TS1005: ';' expected.
2511 * Note: This method mutates
object
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2519:30 - error TS1005: ';' expected.
2519 * @returns Returns
object
.~~~~~~
../../../../node_modules/@types/lodash/common/object.d.ts:2644:1 - error TS1160: Unterminated template literal.
2644
Found 89 errors.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: