Repository navigation
Duplicate Identifier when building #436
Description
[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Hi after updating, I keep getting these kind of duplicates in my logs. I've tried to find out if I might be building something double or such. But I can't find anything, before pulling everything was fine (I used to be on angular.8 beta now it's the 10 version, I saw this at 9 too so I reverted.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2149,9):
Duplicate identifier 'LEFT'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2150,9):
Duplicate identifier 'ARROW_UP'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2151,9):
Duplicate identifier 'UP'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2152,9):
Duplicate identifier 'ARROW_RIGHT'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2153,9):
Duplicate identifier 'RIGHT'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2154,9):
Duplicate identifier 'ARROW_DOWN'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2155,9):
Duplicate identifier 'DOWN'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2156,9):
Duplicate identifier 'INSERT'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2157,9):
Duplicate identifier 'DELETE'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2158,9):
Duplicate identifier 'SEMICOLON'.
[default] /Users/mathijs/projects/customer-care/typings/browser/ambient/selenium-webdriver/index.d.ts (2159,9):
- What is the current behavior?
It works just fine in dev, but prod can't be build and the logs are stuffed with above error. - Please tell us about your environment:
Latest Master properties building from a macbook pro with mostly everything updated to recent.
Activity
whtouche commentedon Mar 19, 2016
Confirming issue - I cloned and installed a copy of this project yesterday and got the same errors (though different typings files were colliding for me, attaching screenshots)
Nothing worked until I reverted to angular 2 beta.8 but now have no apparent errors.
alvipeo commentedon Mar 19, 2016
Just remove typings folder and do 'npm install'.
kennethlynne commentedon Mar 19, 2016
@alvipeo I removed the typings folder and ran npm install with no success.
alvipeo commentedon Mar 20, 2016
Here's my package.js (beta 11) which works (with moment.js and crypto-js as an extra, you can remove them):
oliverschenk commentedon Mar 20, 2016
I installed latest angular2-webpack-starter and started it with no modifications. I also tried the package.json posted above by @alvipeo.
I get the following:
.......etc.......
Also
If I get rid of zone.js from typings.json then I only get:
But I also get the following javascript error in the browser:
Uncaught TypeError: Cannot read property 'cancelTask' of undefined zone.js?e3a6:116msegers commentedon Mar 20, 2016
Will try above tomorrow. Happy to hear it's not just me
PatrickJS commentedon Mar 20, 2016
can you pull latest
xeor commentedon Mar 20, 2016
Removing
selenium-webdriverfrom typings.json, and redo typings did it for me..msegers commentedon Mar 20, 2016
I pulled latest, however now I get this "Uncaught TypeError: core_1.View is not a function." on startup, so nothing works anymore. npm start doesn't show errors though. Is that the issue with Material2 maybe?
PatrickJS commentedon Mar 20, 2016
@msegers material2 should be commented out. They need to update their repo
related angular/components#213
msegers commentedon Mar 20, 2016
Explains, I was using it already with angular 10, so now it's broken. That means that your pull should have resolved my problems since I don't see those around anymore.
PatrickJS commentedon Aug 1, 2016
what's the error?
PatrickJS commentedon Aug 1, 2016
ignore dist in tsconfig
4a4cd48
michaelwalters commentedon Aug 23, 2016
@gdi2290 - I also added "typings" to the exclude:
tsconfig.json: