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 errors when NodeJS project has local copy of @types/node + ATA enabled #20402

Closed
RyanCavanaugh opened this issue Dec 1, 2017 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue @types Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped

Comments

@RyanCavanaugh
Copy link
Member

  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

@RyanCavanaugh RyanCavanaugh added @types Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped Bug A bug in TypeScript labels Dec 1, 2017
@RyanCavanaugh RyanCavanaugh self-assigned this Dec 1, 2017
@mhegazy mhegazy added this to the TypeScript 2.7 milestone Jan 11, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jan 11, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue @types Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped
Projects
None yet
Development

No branches or pull requests

2 participants