-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 when building #436
Comments
Just remove typings folder and do 'npm install'. |
@alvipeo I removed the typings folder and ran npm install with no success. [default] Checking started in a separate process...
[default] /node_modules/angular2/src/common/directives/ng_plural.d.ts (2,10):
Module '"/node_modules/angular2/src/common/directives/ng_switch"' has no exported member 'SwitchView'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (127,5):
Duplicate identifier 'parent'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (131,5):
Duplicate identifier 'name'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (219,5):
Duplicate identifier 'current'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (223,5):
Duplicate identifier 'currentTask'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (234,5):
Duplicate identifier 'name'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (238,5):
Duplicate identifier 'properties'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (251,5):
Duplicate identifier 'onFork'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (261,5):
Duplicate identifier 'onIntercept'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (273,5):
Duplicate identifier 'onInvoke'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (282,5):
Duplicate identifier 'onHandleError'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (291,5):
Duplicate identifier 'onScheduleTask'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (292,5):
Duplicate identifier 'onInvokeTask'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (301,5):
Duplicate identifier 'onCancelTask'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (310,5):
Duplicate identifier 'onHasTask'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (344,5):
Duplicate identifier 'zone'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (354,14):
Duplicate identifier 'HasTaskState'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (363,14):
Duplicate identifier 'TaskType'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (370,5):
Duplicate identifier 'isPeriodic'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (374,5):
Duplicate identifier 'delay'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (397,5):
Duplicate identifier 'type'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (401,5):
Duplicate identifier 'source'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (406,5):
Duplicate identifier 'invoke'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (411,5):
Duplicate identifier 'callback'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (415,5):
Duplicate identifier 'data'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (421,5):
Duplicate identifier 'scheduleFn'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (428,5):
Duplicate identifier 'cancelFn'.
[default] /node_modules/zone.js/dist/zone.js.d.ts (433,5):
Duplicate identifier 'zone'.
[default] /src/polyfills.ts (11,8):
Exported external package typings file '/node_modules/zone.js/dist/zone.js.d.ts' is not a module. Please contact the package author to update the package definition.
[default] /typings/browser/ambient/zone.js/index.d.ts (129,5):
Duplicate identifier 'parent'.
[default] /typings/browser/ambient/zone.js/index.d.ts (133,5):
Duplicate identifier 'name'.
[default] /typings/browser/ambient/zone.js/index.d.ts (221,5):
Duplicate identifier 'current'.
[default] /typings/browser/ambient/zone.js/index.d.ts (225,5):
Duplicate identifier 'currentTask'.
[default] /typings/browser/ambient/zone.js/index.d.ts (236,5):
Duplicate identifier 'name'.
[default] /typings/browser/ambient/zone.js/index.d.ts (240,5):
Duplicate identifier 'properties'.
[default] /typings/browser/ambient/zone.js/index.d.ts (253,5):
Duplicate identifier 'onFork'.
[default] /typings/browser/ambient/zone.js/index.d.ts (263,5):
Duplicate identifier 'onIntercept'.
[default] /typings/browser/ambient/zone.js/index.d.ts (275,5):
Duplicate identifier 'onInvoke'.
[default] /typings/browser/ambient/zone.js/index.d.ts (284,5):
Duplicate identifier 'onHandleError'.
[default] /typings/browser/ambient/zone.js/index.d.ts (293,5):
Duplicate identifier 'onScheduleTask'.
[default] /typings/browser/ambient/zone.js/index.d.ts (294,5):
Duplicate identifier 'onInvokeTask'.
[default] /typings/browser/ambient/zone.js/index.d.ts (303,5):
Duplicate identifier 'onCancelTask'.
[default] /typings/browser/ambient/zone.js/index.d.ts (312,5):
Duplicate identifier 'onHasTask'.
[default] /typings/browser/ambient/zone.js/index.d.ts (346,5):
Duplicate identifier 'zone'.
[default] /typings/browser/ambient/zone.js/index.d.ts (356,14):
Duplicate identifier 'HasTaskState'.
[default] /typings/browser/ambient/zone.js/index.d.ts (365,14):
Duplicate identifier 'TaskType'.
[default] /typings/browser/ambient/zone.js/index.d.ts (372,5):
Duplicate identifier 'isPeriodic'.
[default] /typings/browser/ambient/zone.js/index.d.ts (376,5):
Duplicate identifier 'delay'.
[default] /typings/browser/ambient/zone.js/index.d.ts (399,5):
Duplicate identifier 'type'.
[default] /typings/browser/ambient/zone.js/index.d.ts (403,5):
Duplicate identifier 'source'.
[default] /typings/browser/ambient/zone.js/index.d.ts (408,5):
Duplicate identifier 'invoke'.
[default] /typings/browser/ambient/zone.js/index.d.ts (413,5):
Duplicate identifier 'callback'.
[default] /typings/browser/ambient/zone.js/index.d.ts (417,5):
Duplicate identifier 'data'.
[default] /typings/browser/ambient/zone.js/index.d.ts (423,5):
Duplicate identifier 'scheduleFn'.
[default] /typings/browser/ambient/zone.js/index.d.ts (430,5):
Duplicate identifier 'cancelFn'.
[default] /typings/browser/ambient/zone.js/index.d.ts (435,5):
Duplicate identifier 'zone'. |
Here's my package.js (beta 11) which works (with moment.js and crypto-js as an extra, you can remove them):
|
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:
|
Will try above tomorrow. Happy to hear it's not just me |
can you pull latest |
Removing |
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? |
@msegers material2 should be commented out. They need to update their repo |
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. |
what's the error? |
Hi, @gdi2290 here is a portion of the code: [default] /home/vagrant/code/Application/dist/assets/node_modules/rx/ts/rx.es6.d.ts:6:17 I'm using the angular2-rc4 Hope this help.. |
ignore dist in tsconfig |
@gdi2290 - I also added "typings" to the exclude:
|
[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):
It works just fine in dev, but prod can't be build and the logs are stuffed with above error.
Latest Master properties building from a macbook pro with mostly everything updated to recent.
The text was updated successfully, but these errors were encountered: