frida-compile icon indicating copy to clipboard operation
frida-compile copied to clipboard

Duplicate identifier 'File' with @types/node 20.10.4

Open dogtopus opened this issue 6 months ago • 4 comments

<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'.

dogtopus avatar Dec 12 '23 21:12 dogtopus

Can confirm, I was having the same issue.

MC874 avatar Dec 26 '23 22:12 MC874

same issue. T.T

tajoy avatar Dec 27 '23 05:12 tajoy

Downgrading @types/node to 20.9.x can solve the problem.

package.json

  "devDependencies": {
    "@types/node": "~20.9"
  }

starsunyzl avatar Dec 27 '23 08:12 starsunyzl

Another solution is to skip type checking of declaration files.

{
  "compilerOptions": {
    "skipLibCheck": true,
    ...
  }
}

shoaloak avatar Mar 22 '24 14:03 shoaloak