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

@types/node + typescript@1.9.0-dev.20160521-1.0 results in duplicate identifier 'stack' error #8737

Closed
IgorMinar opened this issue May 22, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@IgorMinar
Copy link

TypeScript Version:

1.9.0-dev.20160521-1.0

Code

Install node d.ts file:

npm install --save-dev @types/node@4.0.21-alpha

index.ts:

console.log('hello');

tsconfig.json:

{
    "compilerOptions": {
        "noImplicitAny": true,
        "strictNullChecks": true,
        "moduleResolution": "node",
        "pretty": true,
        "allowSyntheticDefaultImports": true,
        "skipDefaultLibCheck": true,
        // output options
        "outDir": "dist/",
        "rootDir": "./src",
        "module": "commonjs",
        "target": "es6",
        "declaration": true,
        "sourceMap": true,
        "inlineSources": true
    },
    "files": [
        "src/index.ts",
        "node_modules/@types/node/index.d.ts"
    ]
}

Expected behavior:

the build should work

Actual behavior:

tsc errors with:

11:24:25 PM - File change detected. Starting incremental compilation...

13     stack?: string;
       ~~~~~

node_modules/@types/node/index.d.ts(13,5): error TS2300: Duplicate identifier 'stack'.


883     stack?: string;
        ~~~~~

node_modules/typescript/lib/lib.es6.d.ts(883,5): error TS2300: Duplicate identifier 'stack'.

// @RyanCavanaugh

@IgorMinar IgorMinar changed the title @types/node + typescript@1.9.0-dev.20160521-1.0 results in duplicate identifier stack error @types/node + typescript@1.9.0-dev.20160521-1.0 results in duplicate identifier 'stack' error May 22, 2016
@yortus
Copy link
Contributor

yortus commented May 22, 2016

Looks like a duplicate of #8675

@DanielRosenwasser
Copy link
Member

Yup, same issue, and we agreed that we'd be fixing it at the last design meeting (#8724). I'll close this in the mean time.

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label May 22, 2016
devversion added a commit to devversion/material2 that referenced this issue Jun 4, 2016
* Removes static typings and uses the typings manager
* Fixes duplicate identifier issue of Typescript temporary

 - See microsoft/TypeScript#8737

Fixes angular#630.
devversion added a commit to devversion/material2 that referenced this issue Jun 4, 2016
* Removes static typings and uses the typings manager
* Fixes duplicate identifier issue of Typescript temporary

 - See microsoft/TypeScript#8737

Fixes angular#630.
devversion added a commit to devversion/material2 that referenced this issue Jun 4, 2016
* Removes static typings and uses the typings manager
* Fixes duplicate identifier issue of Typescript temporary

 - See microsoft/TypeScript#8737

Fixes angular#630.
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants