Skip to content

[BUG]报错求助 #142

@1318894377

Description

@1318894377

D:\WMPFDebugger>yarn install
yarn install v1.22.22
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 42.50s.

D:\WMPFDebugger>npx ts-node src/index.ts
D:\WMPFDebugger\node_modules\ts-node\src\index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/index.ts:4:24 - error TS2307: Cannot find module 'frida' or its corresponding type declarations.

4 import * as frida from "frida";
~~~~~~~
src/index.ts:117:44 - error TS7006: Parameter 'process' implicitly has an 'any' type.

117 const wmpfProcesses = processes.filter(process => process.name === "WeChatAppEx.exe");
~~~~~~~
src/index.ts:118:40 - error TS7006: Parameter 'p' implicitly has an 'any' type.

118 const wmpfPids = wmpfProcesses.map(p => p.parameters.ppid ? p.parameters.ppid : 0);
~
src/index.ts:121:36 - error TS7006: Parameter 'a' implicitly has an 'any' type.

121 const wmpfPid = wmpfPids.sort((a, b) => wmpfPids.filter(v => v === a).length - wmpfPids.filter(v => v === b).length).pop();
~
src/index.ts:121:39 - error TS7006: Parameter 'b' implicitly has an 'any' type.

121 const wmpfPid = wmpfPids.sort((a, b) => wmpfPids.filter(v => v === a).length - wmpfPids.filter(v => v === b).length).pop();
~
src/index.ts:121:61 - error TS7006: Parameter 'v' implicitly has an 'any' type.

121 const wmpfPid = wmpfPids.sort((a, b) => wmpfPids.filter(v => v === a).length - wmpfPids.filter(v => v === b).length).pop();
~
src/index.ts:121:100 - error TS7006: Parameter 'v' implicitly has an 'any' type.

121 const wmpfPid = wmpfPids.sort((a, b) => wmpfPids.filter(v => v === a).length - wmpfPids.filter(v => v === b).length).pop();
~
src/index.ts:126:42 - error TS7006: Parameter 'process' implicitly has an 'any' type.

126 const wmpfProcess = processes.filter(process => process.pid === wmpfPid)[0];
~~~~~~~
src/index.ts:163:28 - error TS7006: Parameter 'message' implicitly has an 'any' type.

163 script.message.connect(message => {
~~~~~~~

at createTSError (D:\WMPFDebugger\node_modules\ts-node\src\index.ts:859:12)
at reportTSError (D:\WMPFDebugger\node_modules\ts-node\src\index.ts:863:19)
at getOutput (D:\WMPFDebugger\node_modules\ts-node\src\index.ts:1077:36)
at Object.compile (D:\WMPFDebugger\node_modules\ts-node\src\index.ts:1433:41)
at Module.m._compile (D:\WMPFDebugger\node_modules\ts-node\src\index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
at Object.require.extensions.<computed> [as .ts] (D:\WMPFDebugger\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1317:32)
at Function.Module._load (node:internal/modules/cjs/loader:1127:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14) {

diagnosticCodes: [
2307, 7006, 7006,
7006, 7006, 7006,
7006, 7006, 7006
]
}

D:\WMPFDebugger>node --version
v22.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions