Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

chore(build): error TS2300: Duplicate identifier 'XXXXX' #150

Closed
manekinekko opened this issue Dec 8, 2015 · 7 comments
Closed

chore(build): error TS2300: Duplicate identifier 'XXXXX' #150

manekinekko opened this issue Dec 8, 2015 · 7 comments

Comments

@manekinekko
Copy link
Contributor

tsc is throwing so much TS2300 errors when running the build command (build.typescript.all).

here is a sample :

universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3160,11): error TS2300: Duplicate identifier 'EventEmitter'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3284,9): error TS2300: Duplicate identifier 'name'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3285,9): error TS2300: Duplicate identifier 'value'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3286,9): error TS2300: Duplicate identifier 'path'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3287,9): error TS2300: Duplicate identifier 'domain'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3288,9): error TS2300: Duplicate identifier 'secure'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3289,9): error TS2300: Duplicate identifier 'expiry'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(3648,11): error TS2300: Duplicate identifier 'WebDriver'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4083,9): error TS2300: Duplicate identifier 'ELEMENT'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4372,11): error TS2300: Duplicate identifier 'WebElement'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4699,11): error TS2300: Duplicate identifier 'WebElementPromise'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4836,9): error TS2300: Duplicate identifier 'using'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4842,9): error TS2300: Duplicate identifier 'value'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4857,11): error TS2300: Duplicate identifier 'Session'.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4965,5): error TS2300: Duplicate identifier 'export='.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4969,5): error TS2300: Duplicate identifier 'export='.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4973,5): error TS2300: Duplicate identifier 'export='.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4977,5): error TS2300: Duplicate identifier 'export='.
universal/tsd_typings/selenium-webdriver/selenium-webdriver.d.ts(4981,5): error TS2300: Duplicate identifier 'export='.

After some investigation, it seems it has something to do with this issue from typescript microsoft/TypeScript#1039. I am trying to find a fix.

@manekinekko manekinekko changed the title chroe(build): error TS2300: Duplicate identifier 'XXXXX' chore(build): error TS2300: Duplicate identifier 'XXXXX' Dec 8, 2015
@wesleycho
Copy link
Contributor

@PatrickJS
Copy link
Contributor

there are two node typings installed
https://github.com/angular/universal/blob/master/tsd.json#L8...L10

@PatrickJS
Copy link
Contributor

this will be fixed with webpack and ts-loader

@manekinekko
Copy link
Contributor Author

any news about this issue? Do you need help?

@PatrickJS
Copy link
Contributor

when we switch to webpack we can ignore the warnings until the angular repo fixes it's typings

@PatrickJS
Copy link
Contributor

fixed with refactored build system. I'm also deleting the angular2 typings during install. We will also switch to typings to ensure the warnings we see are correct ones

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants