frida-compile
frida-compile copied to clipboard
Duplicate identifier 'File' with @types/node 20.10.4
<project>/node_modules/@types/frida-gum/index.d.ts (2686,15): Duplicate identifier 'File'.
<project>/node_modules/@types/node/globals.d.ts (379,15): Duplicate identifier 'File'.
<project>/node_modules/@types/node/globals.d.ts (380,9): Duplicate identifier 'File'.
Can confirm, I was having the same issue.
same issue. T.T
Downgrading @types/node to 20.9.x can solve the problem.
package.json
"devDependencies": {
"@types/node": "~20.9"
}
Another solution is to skip type checking of declaration files.
{
"compilerOptions": {
"skipLibCheck": true,
...
}
}