Skip to content

Duplicate identifier errors when NodeJS project has local copy of @types/node + ATA enabled #20402

@RyanCavanaugh

Description

@RyanCavanaugh
  1. Create new NodeJS Console App
  2. npm install @types/node in the project folder
  3. Add "typeAcquisition": {"enable": true} to the tsconfig.json
  4. Trigger a program recompute

Result: Duplicate identifier errors for all the declarations in the node .d.ts

Fix is to tell ATA to not ask the typings installer to add types that are part of the implicit type references of the project

Metadata

Metadata

Assignees

Labels

@typesRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedBugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions