Skip to content
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

Duplicate identifier 'File' with @types/node 20.10.4 #88

Open
dogtopus opened this issue Dec 12, 2023 · 4 comments
Open

Duplicate identifier 'File' with @types/node 20.10.4 #88

dogtopus opened this issue Dec 12, 2023 · 4 comments

Comments

@dogtopus
Copy link

<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'.
@MC874
Copy link

MC874 commented Dec 26, 2023

Can confirm, I was having the same issue.

@tajoy
Copy link

tajoy commented Dec 27, 2023

same issue. T.T

@starsunyzl
Copy link

starsunyzl commented Dec 27, 2023

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

package.json

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

@shoaloak
Copy link

Another solution is to skip type checking of declaration files.

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

ChiChou added a commit to ChiChou/grapefruit that referenced this issue Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants