-
Notifications
You must be signed in to change notification settings - Fork 130
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
tsconfig exclude folder not considered #275
Comments
When a file is referenced or imported, the file is compiled too, even though it was added in the |
Using typings, the successor of tsd, will lead to all definitions getting imported twice - inside "typings/browser" and "typings/main". Excluding "typings/browser/**" via tsconfig will still lead to the duplicate identifier problem. I am not using direct typescript references with "///", but use the 1.6 discovery (or whatever it is called), which seems to discover also defitions that I intended to exclude. It would be nice to have either (1) a new attribute allowind to exclude definitions from discovery, or (2) use the exclude property for both to-be-compiled-typescript-files AND definition discovery. Personally, I prefer (1). Not sure if you can provide for this though - maybe it's for the tsc compiler team? |
@GregorBiswanger I couldn't reproduce this. I have added a test case, which shows the correct behavior. Can you post your project? @amb-it-ion When you specify |
Same here, and I am also in an angular2 project. tsconfig is at my project root. So is the node modules folder.
/node_modules/angular2/src/facade/promise.d.ts(1,10): error TS2661: Cannot re-export name that is not defined in the module. This isn't stopping my compiles, but it's a bit annoying. |
@NickolasAcosta What happens when you set |
Seems to be ignoring my node_modules folder now, but is failing to load my file references. example syntax: Task:
Output:
Here's my tsconfig.
|
I also have the same problem, it really looks like the exclude is completely ignored during gulp task. I'm using typings (https://github.com/typings/typings) with recommended settings, ignoring the browser part of typings installed. |
@xaralis Can you post your tsconfig file? |
Sure, here you go: {
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"exclude": [
"typings/browser.d.ts",
"typings/browser",
"node_modules"
]
} |
Whoa! I've just probably found the culprit. I wasn't running my task properly! For all of you having this issue, make sure you're running your gulp-typescript using something like this: var tsResult = tsProject.src() // instead of gulp.src(...)
.pipe(ts(tsProject)); I was using plain old |
I have the same problem |
@joseSantacruz Can you post some more information? And have you read the handbook? |
I'm using this https://github.com/dsebastien/modernWebDevBuild. When i run it This is my tsconfig.json {
"version": "1.8.9",
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"removeComments": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noEmitOnError": false,
"preserveConstEnums": true,
"inlineSources": false,
"sourceMap": false,
"outDir": "./.tmp",
"rootDir": "./app",
"moduleResolution": "node",
"listFiles": false
},
"formatCodeOptions": {
"indentSize": 2,
"tabSize": 4,
"newLineCharacter": "\r\n",
"convertTabsToSpaces": false,
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"placeOpenBraceOnNewLineForFunctions": false,
"placeOpenBraceOnNewLineForControlBlocks": false
},
"exclude": [
"node_modules",
"jspm_packages",
"typings/browser",
"typings/browser.d.ts"
]
} This is my gulp task var gulp_tp = require("gulp-typescript");
var gulp_sm = require("gulp-sourcemaps");
var gulp_size = require("gulp-size");
gulp.task("scripts-typescript", "Transpile TypeScript to ES, include references to library and app .d.ts files and generate sourcemaps", function () {
var tsProject =gulp_tp.createProject("tsconfig.json", {
typescript: require("typescript") });
var tsConfigOutDir = tsProject.config.compilerOptions.outDir;
var tsResult = tsProject.src().pipe(gulp_sm.init()).pipe((0, gulp_tp)(tsProject));
tsResult.dts.pipe(gulp.dest(tsConfigOutDir));
return tsResult.js.pipe(gulp_sm.write(".", {
includeContent: false,
sourceRoot: "/" })).pipe(gulp.dest(tsConfigOutDir)).pipe((0, gulp_size)({
title: "scripts-typescript"
}));
}); And my output on terminal: node_modules/typescript/lib/typescriptServices.d.ts(2238,15): error TS2451: Cannot redeclare block-scoped variable 'constructorImplementationElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2239,15): error TS2451: Cannot redeclare block-scoped variable 'callSignatureElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2240,15): error TS2451: Cannot redeclare block-scoped variable 'indexSignatureElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2241,15): error TS2451: Cannot redeclare block-scoped variable 'constructSignatureElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2242,15): error TS2451: Cannot redeclare block-scoped variable 'parameterElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2243,15): error TS2451: Cannot redeclare block-scoped variable 'typeParameterElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2244,15): error TS2451: Cannot redeclare block-scoped variable 'primitiveType'.
node_modules/typescript/lib/typescriptServices.d.ts(2245,15): error TS2451: Cannot redeclare block-scoped variable 'label'.
node_modules/typescript/lib/typescriptServices.d.ts(2246,15): error TS2451: Cannot redeclare block-scoped variable 'alias'.
node_modules/typescript/lib/typescriptServices.d.ts(2247,15): error TS2451: Cannot redeclare block-scoped variable 'constElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2248,15): error TS2451: Cannot redeclare block-scoped variable 'letElement'.
node_modules/typescript/lib/typescriptServices.d.ts(2251,15): error TS2451: Cannot redeclare block-scoped variable 'none'.
node_modules/typescript/lib/typescriptServices.d.ts(2252,15): error TS2451: Cannot redeclare block-scoped variable 'publicMemberModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2253,15): error TS2451: Cannot redeclare block-scoped variable 'privateMemberModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2254,15): error TS2451: Cannot redeclare block-scoped variable 'protectedMemberModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2255,15): error TS2451: Cannot redeclare block-scoped variable 'exportedModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2256,15): error TS2451: Cannot redeclare block-scoped variable 'ambientModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2257,15): error TS2451: Cannot redeclare block-scoped variable 'staticModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2258,15): error TS2451: Cannot redeclare block-scoped variable 'abstractModifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2260,11): error TS2300: Duplicate identifier 'ClassificationTypeNames'.
node_modules/typescript/lib/typescriptServices.d.ts(2286,9): error TS2300: Duplicate identifier 'comment'.
node_modules/typescript/lib/typescriptServices.d.ts(2287,9): error TS2300: Duplicate identifier 'identifier'.
node_modules/typescript/lib/typescriptServices.d.ts(2288,9): error TS2300: Duplicate identifier 'keyword'.
node_modules/typescript/lib/typescriptServices.d.ts(2289,9): error TS2300: Duplicate identifier 'numericLiteral'.
node_modules/typescript/lib/typescriptServices.d.ts(2290,9): error TS2300: Duplicate identifier 'operator'.
node_modules/typescript/lib/typescriptServices.d.ts(2291,9): error TS2300: Duplicate identifier 'stringLiteral'.
node_modules/typescript/lib/typescriptServices.d.ts(2292,9): error TS2300: Duplicate identifier 'regularExpressionLiteral'.
node_modules/typescript/lib/typescriptServices.d.ts(2293,9): error TS2300: Duplicate identifier 'whiteSpace'.
node_modules/typescript/lib/typescriptServices.d.ts(2294,9): error TS2300: Duplicate identifier 'text'.
node_modules/typescript/lib/typescriptServices.d.ts(2295,9): error TS2300: Duplicate identifier 'punctuation'.
node_modules/typescript/lib/typescriptServices.d.ts(2296,9): error TS2300: Duplicate identifier 'className'.
node_modules/typescript/lib/typescriptServices.d.ts(2297,9): error TS2300: Duplicate identifier 'enumName'.
node_modules/typescript/lib/typescriptServices.d.ts(2298,9): error TS2300: Duplicate identifier 'interfaceName'.
node_modules/typescript/lib/typescriptServices.d.ts(2299,9): error TS2300: Duplicate identifier 'moduleName'.
node_modules/typescript/lib/typescriptServices.d.ts(2300,9): error TS2300: Duplicate identifier 'typeParameterName'.
node_modules/typescript/lib/typescriptServices.d.ts(2301,9): error TS2300: Duplicate identifier 'typeAliasName'.
node_modules/typescript/lib/typescriptServices.d.ts(2302,9): error TS2300: Duplicate identifier 'parameterName'.
node_modules/typescript/lib/typescriptServices.d.ts(2303,9): error TS2300: Duplicate identifier 'docCommentTagName'.
node_modules/typescript/lib/typescriptServices.d.ts(2304,9): error TS2300: Duplicate identifier 'jsxOpenTagName'.
node_modules/typescript/lib/typescriptServices.d.ts(2305,9): error TS2300: Duplicate identifier 'jsxCloseTagName'.
node_modules/typescript/lib/typescriptServices.d.ts(2306,9): error TS2300: Duplicate identifier 'jsxSelfClosingTagName'.
node_modules/typescript/lib/typescriptServices.d.ts(2307,9): error TS2300: Duplicate identifier 'jsxAttribute'.
node_modules/typescript/lib/typescriptServices.d.ts(2308,9): error TS2300: Duplicate identifier 'jsxText'.
node_modules/typescript/lib/typescriptServices.d.ts(2309,9): error TS2300: Duplicate identifier 'jsxAttributeStringLiteralValue'.
node_modules/typescript/lib/typescriptServices.d.ts(2317,9): error TS2300: Duplicate identifier 'compilerOptions'.
node_modules/typescript/lib/typescriptServices.d.ts(2318,9): error TS2300: Duplicate identifier 'fileName'.
node_modules/typescript/lib/typescriptServices.d.ts(2319,9): error TS2300: Duplicate identifier 'reportDiagnostics'.
node_modules/typescript/lib/typescriptServices.d.ts(2320,9): error TS2300: Duplicate identifier 'moduleName'.
node_modules/typescript/lib/typescriptServices.d.ts(2321,9): error TS2300: Duplicate identifier 'renamedDependencies'.
node_modules/typescript/lib/typescriptServices.d.ts(2324,9): error TS2300: Duplicate identifier 'outputText'.
node_modules/typescript/lib/typescriptServices.d.ts(2325,9): error TS2300: Duplicate identifier 'diagnostics'.
node_modules/typescript/lib/typescriptServices.d.ts(2326,9): error TS2300: Duplicate identifier 'sourceMapText'.
node_modules/typescript/lib/typescriptServices.d.ts(2331,9): error TS2451: Cannot redeclare block-scoped variable 'disableIncrementalParsing'.
node_modules/typings-core/dist/bundle.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/init.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/install.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/lib/compile.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/lib/dependencies.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/lib/error.d.ts(1,27): error TS2307: Cannot find module 'make-error-cause'.
node_modules/typings-core/dist/list.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/search.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/uninstall.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/utils/debug.d.ts(1,24): error TS2307: Cannot find module 'debug'.
node_modules/typings-core/dist/utils/find.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/utils/fs.d.ts(1,21): error TS2307: Cannot find module 'graceful-fs'.
node_modules/typings-core/dist/utils/fs.d.ts(2,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings-core/dist/utils/fs.d.ts(3,27): error TS2307: Cannot find module 'lockfile'.
node_modules/typings-core/dist/utils/fs.d.ts(4,22): error TS2307: Cannot find module 'touch'.
node_modules/typings-core/dist/utils/store.d.ts(1,30): error TS2307: Cannot find module 'configstore'.
node_modules/typings-core/dist/view.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-bundle.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-init.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-install.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-install.d.ts(2,25): error TS2307: Cannot find module 'typings-core'.
node_modules/typings/dist/bin-list.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-search.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-uninstall.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/bin-view.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/support/cli.d.ts(1,26): error TS2307: Cannot find module 'any-promise'.
node_modules/typings/dist/support/cli.d.ts(2,32): error TS2307: Cannot find module 'typings-core'.
node_modules/typings/dist/typings.d.ts(1,15): error TS2307: Cannot find module 'typings-core'.
node_modules/zone.js/dist/zone.js.d.ts(122,11): error TS2300: Duplicate identifier 'Zone'.
node_modules/zone.js/dist/zone.js.d.ts(219,5): error TS2300: Duplicate identifier 'current'.
node_modules/zone.js/dist/zone.js.d.ts(223,5): error TS2300: Duplicate identifier 'currentTask'.
node_modules/zone.js/dist/zone.js.d.ts(234,5): error TS2300: Duplicate identifier 'name'.
node_modules/zone.js/dist/zone.js.d.ts(238,5): error TS2300: Duplicate identifier 'properties'.
node_modules/zone.js/dist/zone.js.d.ts(251,5): error TS2300: Duplicate identifier 'onFork'.
node_modules/zone.js/dist/zone.js.d.ts(261,5): error TS2300: Duplicate identifier 'onIntercept'.
node_modules/zone.js/dist/zone.js.d.ts(273,5): error TS2300: Duplicate identifier 'onInvoke'.
node_modules/zone.js/dist/zone.js.d.ts(282,5): error TS2300: Duplicate identifier 'onHandleError'.
node_modules/zone.js/dist/zone.js.d.ts(291,5): error TS2300: Duplicate identifier 'onScheduleTask'.
node_modules/zone.js/dist/zone.js.d.ts(292,5): error TS2300: Duplicate identifier 'onInvokeTask'.
node_modules/zone.js/dist/zone.js.d.ts(301,5): error TS2300: Duplicate identifier 'onCancelTask'.
node_modules/zone.js/dist/zone.js.d.ts(310,5): error TS2300: Duplicate identifier 'onHasTask'.
node_modules/zone.js/dist/zone.js.d.ts(344,5): error TS2300: Duplicate identifier 'zone'.
node_modules/zone.js/dist/zone.js.d.ts(354,14): error TS2300: Duplicate identifier 'HasTaskState'.
node_modules/zone.js/dist/zone.js.d.ts(363,14): error TS2300: Duplicate identifier 'TaskType'.
node_modules/zone.js/dist/zone.js.d.ts(370,5): error TS2300: Duplicate identifier 'isPeriodic'.
node_modules/zone.js/dist/zone.js.d.ts(374,5): error TS2300: Duplicate identifier 'delay'.
node_modules/zone.js/dist/zone.js.d.ts(397,5): error TS2300: Duplicate identifier 'type'.
node_modules/zone.js/dist/zone.js.d.ts(401,5): error TS2300: Duplicate identifier 'source'.
node_modules/zone.js/dist/zone.js.d.ts(406,5): error TS2300: Duplicate identifier 'invoke'.
node_modules/zone.js/dist/zone.js.d.ts(411,5): error TS2300: Duplicate identifier 'callback'.
node_modules/zone.js/dist/zone.js.d.ts(415,5): error TS2300: Duplicate identifier 'data'.
node_modules/zone.js/dist/zone.js.d.ts(421,5): error TS2300: Duplicate identifier 'scheduleFn'.
node_modules/zone.js/dist/zone.js.d.ts(428,5): error TS2300: Duplicate identifier 'cancelFn'.
node_modules/zone.js/dist/zone.js.d.ts(433,5): error TS2300: Duplicate identifier 'zone'.
node_modules/zone.js/dist/zone.js.d.ts(437,5): error TS2300: Duplicate identifier 'runCount'.
node_modules/zone.js/dist/zone.js.d.ts(445,13): error TS2300: Duplicate identifier 'Zone'.
node_modules/zone.js/lib/browser/browser.ts(24,19): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/browser.ts(72,23): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/browser.ts(91,19): error TS2339: Property 'cancelTask' does not exist on type 'Zone'.
node_modules/zone.js/lib/browser/property-descriptor.ts(73,24): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/register-element.ts(24,37): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/register-element.ts(27,45): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/register-element.ts(30,43): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/utils.ts(15,22): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/utils.ts(192,25): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/browser/utils.ts(201,8): error TS2339: Property 'scheduleEventTask' does not exist on type 'Zone'.
node_modules/zone.js/lib/browser/utils.ts(214,20): error TS2339: Property 'cancelTask' does not exist on type 'Zone'.
node_modules/zone.js/lib/browser/utils.ts(262,54): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/jasmine/jasmine.ts(9,7): error TS2451: Cannot redeclare block-scoped variable '_global'.
node_modules/zone.js/lib/zone-spec/async-test.ts(8,20): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/zone-spec/long-stack-trace.ts(75,30): error TS2339: Property 'currentTask' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/zone-spec/long-stack-trace.ts(89,29): error TS2339: Property 'currentTask' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/zone-spec/sync-test.ts(3,20): error TS2339: Property 'current' does not exist on type 'typeof Zone'.
node_modules/zone.js/lib/zone-spec/wtf.ts(46,67): error TS2339: Property 'name' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone-spec/wtf.ts(130,29): error TS2339: Property 'name' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone-spec/wtf.ts(131,17): error TS2339: Property 'parent' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone-spec/wtf.ts(133,19): error TS2339: Property 'name' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone-spec/wtf.ts(134,19): error TS2339: Property 'parent' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone.ts(122,11): error TS2300: Duplicate identifier 'Zone'.
node_modules/zone.js/lib/zone.ts(221,3): error TS2300: Duplicate identifier 'current'.
node_modules/zone.js/lib/zone.ts(225,3): error TS2300: Duplicate identifier 'currentTask'.
node_modules/zone.js/lib/zone.ts(237,3): error TS2300: Duplicate identifier 'name'.
node_modules/zone.js/lib/zone.ts(242,3): error TS2300: Duplicate identifier 'properties'.
node_modules/zone.js/lib/zone.ts(254,3): error TS2300: Duplicate identifier 'onFork'.
node_modules/zone.js/lib/zone.ts(266,3): error TS2300: Duplicate identifier 'onIntercept'.
node_modules/zone.js/lib/zone.ts(280,3): error TS2300: Duplicate identifier 'onInvoke'.
node_modules/zone.js/lib/zone.ts(291,3): error TS2300: Duplicate identifier 'onHandleError'.
node_modules/zone.js/lib/zone.ts(302,3): error TS2300: Duplicate identifier 'onScheduleTask'.
node_modules/zone.js/lib/zone.ts(305,3): error TS2300: Duplicate identifier 'onInvokeTask'.
node_modules/zone.js/lib/zone.ts(316,3): error TS2300: Duplicate identifier 'onCancelTask'.
node_modules/zone.js/lib/zone.ts(327,3): error TS2300: Duplicate identifier 'onHasTask'.
node_modules/zone.js/lib/zone.ts(363,3): error TS2300: Duplicate identifier 'zone'.
node_modules/zone.js/lib/zone.ts(374,6): error TS2300: Duplicate identifier 'HasTaskState'.
node_modules/zone.js/lib/zone.ts(384,6): error TS2300: Duplicate identifier 'TaskType'.
node_modules/zone.js/lib/zone.ts(392,3): error TS2300: Duplicate identifier 'isPeriodic'.
node_modules/zone.js/lib/zone.ts(397,3): error TS2300: Duplicate identifier 'delay'.
node_modules/zone.js/lib/zone.ts(421,3): error TS2300: Duplicate identifier 'type'.
node_modules/zone.js/lib/zone.ts(426,3): error TS2300: Duplicate identifier 'source'.
node_modules/zone.js/lib/zone.ts(432,3): error TS2300: Duplicate identifier 'invoke'.
node_modules/zone.js/lib/zone.ts(438,3): error TS2300: Duplicate identifier 'callback'.
node_modules/zone.js/lib/zone.ts(443,3): error TS2300: Duplicate identifier 'data'.
node_modules/zone.js/lib/zone.ts(450,3): error TS2300: Duplicate identifier 'scheduleFn'.
node_modules/zone.js/lib/zone.ts(458,3): error TS2300: Duplicate identifier 'cancelFn'.
node_modules/zone.js/lib/zone.ts(464,3): error TS2300: Duplicate identifier 'zone'.
node_modules/zone.js/lib/zone.ts(469,3): error TS2300: Duplicate identifier 'runCount'.
node_modules/zone.js/lib/zone.ts(485,6): error TS2300: Duplicate identifier 'AmbientZone'.
node_modules/zone.js/lib/zone.ts(487,6): error TS2300: Duplicate identifier 'AmbientZoneDelegate'.
node_modules/zone.js/lib/zone.ts(489,5): error TS2300: Duplicate identifier 'Zone'.
node_modules/zone.js/lib/zone.ts(490,9): error TS2420: Class 'Zone' incorrectly implements interface 'Zone'.
Property 'bind' is missing in type 'Zone'.
node_modules/zone.js/lib/zone.ts(494,48): error TS2322: Type 'Zone' is not assignable to type 'Zone'.
Property 'bind' is missing in type 'Zone'.
node_modules/zone.js/lib/zone.ts(497,47): error TS2322: Type 'Zone' is not assignable to type 'Zone'.
node_modules/zone.js/lib/zone.ts(574,11): error TS2365: Operator '!=' cannot be applied to types 'Zone' and 'this'.
node_modules/zone.js/lib/zone.ts(576,23): error TS2339: Property 'name' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone.ts(602,11): error TS2345: Argument of type 'ZoneTask' is not assignable to parameter of type 'Task'.
Types of property 'zone' are incompatible.
Type 'Zone' is not assignable to type 'Zone'.
node_modules/zone.js/lib/zone.ts(609,11): error TS2345: Argument of type 'ZoneTask' is not assignable to parameter of type 'Task'.
node_modules/zone.js/lib/zone.ts(616,11): error TS2345: Argument of type 'ZoneTask' is not assignable to parameter of type 'Task'.
node_modules/zone.js/lib/zone.ts(627,9): error TS2420: Class 'ZoneDelegate' incorrectly implements interface 'ZoneDelegate'.
Types of property 'zone' are incompatible.
Type 'Zone' is not assignable to type 'Zone'.
node_modules/zone.js/lib/zone.ts(690,33): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
Types of property 'zone' are incompatible.
Type 'Zone' is not assignable to type 'Zone'.
node_modules/zone.js/lib/zone.ts(696,43): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(704,37): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(710,47): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(717,54): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(736,47): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(748,50): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(762,59): error TS2345: Argument of type 'ZoneDelegate' is not assignable to parameter of type 'ZoneDelegate'.
node_modules/zone.js/lib/zone.ts(792,9): error TS2420: Class 'ZoneTask' incorrectly implements interface 'Task'.
Types of property 'zone' are incompatible.
Type 'Zone' is not assignable to type 'Zone'.
node_modules/zone.js/lib/zone.ts(816,31): error TS2345: Argument of type 'this' is not assignable to parameter of type 'Task'.
Type 'ZoneTask' is not assignable to type 'Task'.
node_modules/zone.js/lib/zone.ts(881,23): error TS2339: Property 'runTask' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone.ts(893,39): error TS2339: Property 'runGuarded' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone.ts(984,10): error TS2339: Property 'scheduleMicroTask' does not exist on type 'Zone'.
node_modules/zone.js/lib/zone.ts(993,9): error TS2420: Class 'ZoneAwarePromise<R>' incorrectly implements interface 'Promise<R>'.
Property '[Symbol.toStringTag]' is missing in type 'ZoneAwarePromise<R>'.
node_modules/zone.js/lib/zone.ts(995,14): error TS2322: Type 'ZoneAwarePromise<any>' is not assignable to type 'Promise<R>'.
Property '[Symbol.toStringTag]' is missing in type 'ZoneAwarePromise<any>'.
node_modules/zone.js/lib/zone.ts(999,14): error TS2322: Type 'ZoneAwarePromise<any>' is not assignable to type 'Promise<U>'.
Property '[Symbol.toStringTag]' is missing in type 'ZoneAwarePromise<any>'.
node_modules/zone.js/lib/zone.ts(1041,14): error TS2322: Type 'ZoneAwarePromise<{}>' is not assignable to type 'Promise<R>'.
Property '[Symbol.toStringTag]' is missing in type 'ZoneAwarePromise<{}>'.
node_modules/zone.js/lib/zone.ts(1059,11): error TS2322: Type 'ZoneAwarePromise<{}>' is not assignable to type 'Promise<R>'.
Property '[Symbol.toStringTag]' is missing in type 'ZoneAwarePromise<{}>'.
typings/browser/ambient/auth0.lock/index.d.ts(10,5): error TS2300: Duplicate identifier 'width'.
typings/browser/ambient/auth0.lock/index.d.ts(11,5): error TS2300: Duplicate identifier 'height'.
typings/browser/ambient/auth0.lock/index.d.ts(12,5): error TS2300: Duplicate identifier 'left'.
typings/browser/ambient/auth0.lock/index.d.ts(13,5): error TS2300: Duplicate identifier 'top'.
typings/browser/ambient/auth0.lock/index.d.ts(17,5): error TS2300: Duplicate identifier 'authParams'.
typings/browser/ambient/auth0.lock/index.d.ts(18,5): error TS2300: Duplicate identifier 'callbackURL'.
typings/browser/ambient/auth0.lock/index.d.ts(19,5): error TS2300: Duplicate identifier 'connections'.
typings/browser/ambient/auth0.lock/index.d.ts(20,5): error TS2300: Duplicate identifier 'container'.
typings/browser/ambient/auth0.lock/index.d.ts(21,5): error TS2300: Duplicate identifier 'closable'.
typings/browser/ambient/auth0.lock/index.d.ts(22,5): error TS2300: Duplicate identifier 'dict'.
typings/browser/ambient/auth0.lock/index.d.ts(23,5): error TS2300: Duplicate identifier 'defaultUserPasswordConnection'.
typings/browser/ambient/auth0.lock/index.d.ts(24,5): error TS2300: Duplicate identifier 'defaultADUsernameFromEmailPrefix'.
typings/browser/ambient/auth0.lock/index.d.ts(25,5): error TS2300: Duplicate identifier 'disableResetAction'.
typings/browser/ambient/auth0.lock/index.d.ts(26,5): error TS2300: Duplicate identifier 'disableSignupAction'.
typings/browser/ambient/auth0.lock/index.d.ts(27,5): error TS2300: Duplicate identifier 'focusInput'.
typings/browser/ambient/auth0.lock/index.d.ts(28,5): error TS2300: Duplicate identifier 'forceJSONP'.
typings/browser/ambient/auth0.lock/index.d.ts(29,5): error TS2300: Duplicate identifier 'gravatar'.
typings/browser/ambient/auth0.lock/index.d.ts(30,5): error TS2300: Duplicate identifier 'integratedWindowsLogin'.
typings/browser/ambient/auth0.lock/index.d.ts(31,5): error TS2300: Duplicate identifier 'icon'.
typings/browser/ambient/auth0.lock/index.d.ts(32,5): error TS2300: Duplicate identifier 'loginAfterSignup'.
typings/browser/ambient/auth0.lock/index.d.ts(33,5): error TS2300: Duplicate identifier 'popup'.
typings/browser/ambient/auth0.lock/index.d.ts(34,5): error TS2300: Duplicate identifier 'popupOptions'.
typings/browser/ambient/auth0.lock/index.d.ts(35,5): error TS2300: Duplicate identifier 'rememberLastLogin'.
typings/browser/ambient/auth0.lock/index.d.ts(36,5): error TS2300: Duplicate identifier 'resetLink'.
typings/browser/ambient/auth0.lock/index.d.ts(37,5): error TS2300: Duplicate identifier 'responseType'.
typings/browser/ambient/auth0.lock/index.d.ts(38,5): error TS2300: Duplicate identifier 'signupLink'.
typings/browser/ambient/auth0.lock/index.d.ts(39,5): error TS2300: Duplicate identifier 'socialBigButtons'.
typings/browser/ambient/auth0.lock/index.d.ts(40,5): error TS2300: Duplicate identifier 'sso'.
typings/browser/ambient/auth0.lock/index.d.ts(41,5): error TS2300: Duplicate identifier 'theme'.
typings/browser/ambient/auth0.lock/index.d.ts(42,5): error TS2300: Duplicate identifier 'usernameStyle'.
typings/browser/ambient/auth0.lock/index.d.ts(46,5): error TS2300: Duplicate identifier 'cdn'.
typings/browser/ambient/auth0.lock/index.d.ts(47,5): error TS2300: Duplicate identifier 'assetsUrl'.
typings/browser/ambient/auth0.lock/index.d.ts(48,5): error TS2300: Duplicate identifier 'useCordovaSocialPlugins'.
typings/browser/ambient/auth0.lock/index.d.ts(56,29): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(56,51): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/browser/ambient/auth0.lock/index.d.ts(57,56): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(57,78): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/browser/ambient/auth0.lock/index.d.ts(61,35): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(61,57): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/browser/ambient/auth0.lock/index.d.ts(62,62): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(62,84): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/browser/ambient/auth0.lock/index.d.ts(66,35): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(67,62): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(71,34): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(72,61): error TS2304: Cannot find name 'Auth0Error'.
typings/browser/ambient/auth0.lock/index.d.ts(77,18): error TS2304: Cannot find name 'Auth0Static'.
typings/browser/ambient/auth0.lock/index.d.ts(83,5): error TS2300: Duplicate identifier 'export='.
typings/browser/ambient/es6-shim/index.d.ts(8,14): error TS2300: Duplicate identifier 'PropertyKey'.
typings/browser/ambient/es6-shim/index.d.ts(11,5): error TS2300: Duplicate identifier 'done'.
typings/browser/ambient/es6-shim/index.d.ts(12,5): error TS2300: Duplicate identifier 'value'.
typings/browser/ambient/es6-shim/index.d.ts(105,5): error TS2300: Duplicate identifier 'bold'.
typings/browser/ambient/es6-shim/index.d.ts(250,5): error TS2300: Duplicate identifier 'EPSILON'.
typings/browser/ambient/es6-shim/index.d.ts(285,5): error TS2300: Duplicate identifier 'MAX_SAFE_INTEGER'.
typings/browser/ambient/es6-shim/index.d.ts(292,5): error TS2300: Duplicate identifier 'MIN_SAFE_INTEGER'.
typings/browser/ambient/es6-shim/index.d.ts(348,5): error TS2300: Duplicate identifier 'flags'.
typings/browser/ambient/es6-shim/index.d.ts(477,11): error TS2300: Duplicate identifier 'Promise'.
typings/browser/ambient/es6-shim/index.d.ts(496,11): error TS2300: Duplicate identifier 'PromiseConstructor'.
typings/browser/ambient/es6-shim/index.d.ts(500,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(554,13): error TS2300: Duplicate identifier 'Promise'.
typings/browser/ambient/es6-shim/index.d.ts(563,5): error TS2300: Duplicate identifier 'size'.
typings/browser/ambient/es6-shim/index.d.ts(572,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(583,5): error TS2300: Duplicate identifier 'size'.
typings/browser/ambient/es6-shim/index.d.ts(592,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(607,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(621,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/jasmine/index.d.ts(11,18): error TS2300: Duplicate identifier 'describe'.
typings/browser/ambient/jasmine/index.d.ts(13,18): error TS2300: Duplicate identifier 'xdescribe'.
typings/browser/ambient/jasmine/index.d.ts(15,18): error TS2300: Duplicate identifier 'it'.
typings/browser/ambient/jasmine/index.d.ts(16,18): error TS2300: Duplicate identifier 'it'.
typings/browser/ambient/jasmine/index.d.ts(19,18): error TS2300: Duplicate identifier 'xit'.
typings/browser/ambient/jasmine/index.d.ts(20,18): error TS2300: Duplicate identifier 'xit'.
typings/browser/ambient/jasmine/index.d.ts(74,9): error TS2300: Duplicate identifier 'length'.
typings/browser/ambient/jasmine/index.d.ts(133,9): error TS2300: Duplicate identifier 'pass'.
typings/browser/ambient/jasmine/index.d.ts(134,9): error TS2300: Duplicate identifier 'message'.
typings/browser/ambient/jasmine/index.d.ts(144,9): error TS2300: Duplicate identifier 'setTimeout'.
typings/browser/ambient/jasmine/index.d.ts(145,9): error TS2300: Duplicate identifier 'clearTimeout'.
typings/browser/ambient/jasmine/index.d.ts(146,9): error TS2300: Duplicate identifier 'setInterval'.
typings/browser/ambient/jasmine/index.d.ts(147,9): error TS2300: Duplicate identifier 'clearInterval'.
typings/browser/ambient/jasmine/index.d.ts(148,9): error TS2300: Duplicate identifier 'updateInterval'.
typings/browser/ambient/jasmine/index.d.ts(150,9): error TS2300: Duplicate identifier 'currentSpec'.
typings/browser/ambient/jasmine/index.d.ts(152,9): error TS2300: Duplicate identifier 'matchersClass'.
typings/browser/ambient/jasmine/index.d.ts(198,9): error TS2300: Duplicate identifier 'type'.
typings/browser/ambient/jasmine/index.d.ts(202,9): error TS2300: Duplicate identifier 'description'.
typings/browser/ambient/jasmine/index.d.ts(204,9): error TS2300: Duplicate identifier 'totalCount'.
typings/browser/ambient/jasmine/index.d.ts(205,9): error TS2300: Duplicate identifier 'passedCount'.
typings/browser/ambient/jasmine/index.d.ts(206,9): error TS2300: Duplicate identifier 'failedCount'.
typings/browser/ambient/jasmine/index.d.ts(208,9): error TS2300: Duplicate identifier 'skipped'.
typings/browser/ambient/jasmine/index.d.ts(218,9): error TS2300: Duplicate identifier 'values'.
typings/browser/ambient/jasmine/index.d.ts(219,9): error TS2300: Duplicate identifier 'trace'.
typings/browser/ambient/jasmine/index.d.ts(223,9): error TS2300: Duplicate identifier 'matcherName'.
typings/browser/ambient/jasmine/index.d.ts(225,9): error TS2300: Duplicate identifier 'expected'.
typings/browser/ambient/jasmine/index.d.ts(226,9): error TS2300: Duplicate identifier 'actual'.
typings/browser/ambient/jasmine/index.d.ts(227,9): error TS2300: Duplicate identifier 'message'.
typings/browser/ambient/jasmine/index.d.ts(228,9): error TS2300: Duplicate identifier 'trace'.
typings/browser/ambient/jasmine/index.d.ts(232,9): error TS2300: Duplicate identifier 'name'.
typings/browser/ambient/jasmine/index.d.ts(233,9): error TS2300: Duplicate identifier 'message'.
typings/browser/ambient/jasmine/index.d.ts(234,9): error TS2300: Duplicate identifier 'stack'.
typings/browser/ambient/jasmine/index.d.ts(257,9): error TS2300: Duplicate identifier 'env'.
typings/browser/ambient/jasmine/index.d.ts(258,9): error TS2300: Duplicate identifier 'ensured'.
typings/browser/ambient/jasmine/index.d.ts(259,9): error TS2300: Duplicate identifier 'blocks'.
typings/browser/ambient/jasmine/index.d.ts(260,9): error TS2300: Duplicate identifier 'running'.
typings/browser/ambient/jasmine/index.d.ts(261,9): error TS2300: Duplicate identifier 'index'.
typings/browser/ambient/jasmine/index.d.ts(262,9): error TS2300: Duplicate identifier 'offset'.
typings/browser/ambient/jasmine/index.d.ts(263,9): error TS2300: Duplicate identifier 'abort'.
typings/browser/ambient/jasmine/index.d.ts(278,9): error TS2300: Duplicate identifier 'env'.
typings/browser/ambient/jasmine/index.d.ts(279,9): error TS2300: Duplicate identifier 'actual'.
typings/browser/ambient/jasmine/index.d.ts(280,9): error TS2300: Duplicate identifier 'spec'.
typings/browser/ambient/jasmine/index.d.ts(281,9): error TS2300: Duplicate identifier 'isNot'.
typings/browser/ambient/jasmine/index.d.ts(303,9): error TS2300: Duplicate identifier 'not'.
typings/browser/ambient/jasmine/index.d.ts(305,9): error TS2300: Duplicate identifier 'Any'.
typings/browser/ambient/jasmine/index.d.ts(344,9): error TS2300: Duplicate identifier 'id'.
typings/browser/ambient/jasmine/index.d.ts(345,9): error TS2300: Duplicate identifier 'env'.
typings/browser/ambient/jasmine/index.d.ts(346,9): error TS2300: Duplicate identifier 'description'.
typings/browser/ambient/jasmine/index.d.ts(347,9): error TS2300: Duplicate identifier 'queue'.
typings/browser/ambient/jasmine/index.d.ts(354,9): error TS2300: Duplicate identifier 'suite'.
typings/browser/ambient/jasmine/index.d.ts(356,9): error TS2300: Duplicate identifier 'afterCallbacks'.
typings/browser/ambient/jasmine/index.d.ts(357,9): error TS2300: Duplicate identifier 'spies_'.
typings/browser/ambient/jasmine/index.d.ts(359,9): error TS2300: Duplicate identifier 'results_'.
typings/browser/ambient/jasmine/index.d.ts(360,9): error TS2300: Duplicate identifier 'matchersClass'.
typings/browser/ambient/jasmine/index.d.ts(385,9): error TS2300: Duplicate identifier 'id'.
typings/browser/ambient/jasmine/index.d.ts(393,9): error TS2300: Duplicate identifier 'parentSuite'.
typings/browser/ambient/jasmine/index.d.ts(416,9): error TS2300: Duplicate identifier 'identity'.
typings/browser/ambient/jasmine/index.d.ts(417,9): error TS2300: Duplicate identifier 'and'.
typings/browser/ambient/jasmine/index.d.ts(418,9): error TS2300: Duplicate identifier 'calls'.
typings/browser/ambient/jasmine/index.d.ts(419,9): error TS2300: Duplicate identifier 'mostRecentCall'.
typings/browser/ambient/jasmine/index.d.ts(420,9): error TS2300: Duplicate identifier 'argsForCall'.
typings/browser/ambient/jasmine/index.d.ts(421,9): error TS2300: Duplicate identifier 'wasCalled'.
typings/browser/ambient/jasmine/index.d.ts(458,9): error TS2300: Duplicate identifier 'object'.
typings/browser/ambient/jasmine/index.d.ts(460,9): error TS2300: Duplicate identifier 'args'.
typings/browser/ambient/jasmine/index.d.ts(473,9): error TS2300: Duplicate identifier 'started'.
typings/browser/ambient/jasmine/index.d.ts(474,9): error TS2300: Duplicate identifier 'finished'.
typings/browser/ambient/jasmine/index.d.ts(475,9): error TS2300: Duplicate identifier 'result'.
typings/browser/ambient/jasmine/index.d.ts(476,9): error TS2300: Duplicate identifier 'messages'.
typings/browser/ambient/jasmine/index.d.ts(490,9): error TS2300: Duplicate identifier 'Spec'.
typings/browser/ambient/jasmine/index.d.ts(491,9): error TS2300: Duplicate identifier 'clock'.
typings/browser/ambient/jasmine/index.d.ts(492,9): error TS2300: Duplicate identifier 'util'.
typings/browser/ambient/zone.js/index.d.ts(8,15): error TS2300: Duplicate identifier 'Zone'.
typings/main/ambient/auth0.lock/index.d.ts(10,5): error TS2300: Duplicate identifier 'width'.
typings/main/ambient/auth0.lock/index.d.ts(11,5): error TS2300: Duplicate identifier 'height'.
typings/main/ambient/auth0.lock/index.d.ts(12,5): error TS2300: Duplicate identifier 'left'.
typings/main/ambient/auth0.lock/index.d.ts(13,5): error TS2300: Duplicate identifier 'top'.
typings/main/ambient/auth0.lock/index.d.ts(17,5): error TS2300: Duplicate identifier 'authParams'.
typings/main/ambient/auth0.lock/index.d.ts(18,5): error TS2300: Duplicate identifier 'callbackURL'.
typings/main/ambient/auth0.lock/index.d.ts(19,5): error TS2300: Duplicate identifier 'connections'.
typings/main/ambient/auth0.lock/index.d.ts(20,5): error TS2300: Duplicate identifier 'container'.
typings/main/ambient/auth0.lock/index.d.ts(21,5): error TS2300: Duplicate identifier 'closable'.
typings/main/ambient/auth0.lock/index.d.ts(22,5): error TS2300: Duplicate identifier 'dict'.
typings/main/ambient/auth0.lock/index.d.ts(23,5): error TS2300: Duplicate identifier 'defaultUserPasswordConnection'.
typings/main/ambient/auth0.lock/index.d.ts(24,5): error TS2300: Duplicate identifier 'defaultADUsernameFromEmailPrefix'.
typings/main/ambient/auth0.lock/index.d.ts(25,5): error TS2300: Duplicate identifier 'disableResetAction'.
typings/main/ambient/auth0.lock/index.d.ts(26,5): error TS2300: Duplicate identifier 'disableSignupAction'.
typings/main/ambient/auth0.lock/index.d.ts(27,5): error TS2300: Duplicate identifier 'focusInput'.
typings/main/ambient/auth0.lock/index.d.ts(28,5): error TS2300: Duplicate identifier 'forceJSONP'.
typings/main/ambient/auth0.lock/index.d.ts(29,5): error TS2300: Duplicate identifier 'gravatar'.
typings/main/ambient/auth0.lock/index.d.ts(30,5): error TS2300: Duplicate identifier 'integratedWindowsLogin'.
typings/main/ambient/auth0.lock/index.d.ts(31,5): error TS2300: Duplicate identifier 'icon'.
typings/main/ambient/auth0.lock/index.d.ts(32,5): error TS2300: Duplicate identifier 'loginAfterSignup'.
typings/main/ambient/auth0.lock/index.d.ts(33,5): error TS2300: Duplicate identifier 'popup'.
typings/main/ambient/auth0.lock/index.d.ts(34,5): error TS2300: Duplicate identifier 'popupOptions'.
typings/main/ambient/auth0.lock/index.d.ts(35,5): error TS2300: Duplicate identifier 'rememberLastLogin'.
typings/main/ambient/auth0.lock/index.d.ts(36,5): error TS2300: Duplicate identifier 'resetLink'.
typings/main/ambient/auth0.lock/index.d.ts(37,5): error TS2300: Duplicate identifier 'responseType'.
typings/main/ambient/auth0.lock/index.d.ts(38,5): error TS2300: Duplicate identifier 'signupLink'.
typings/main/ambient/auth0.lock/index.d.ts(39,5): error TS2300: Duplicate identifier 'socialBigButtons'.
typings/main/ambient/auth0.lock/index.d.ts(40,5): error TS2300: Duplicate identifier 'sso'.
typings/main/ambient/auth0.lock/index.d.ts(41,5): error TS2300: Duplicate identifier 'theme'.
typings/main/ambient/auth0.lock/index.d.ts(42,5): error TS2300: Duplicate identifier 'usernameStyle'.
typings/main/ambient/auth0.lock/index.d.ts(46,5): error TS2300: Duplicate identifier 'cdn'.
typings/main/ambient/auth0.lock/index.d.ts(47,5): error TS2300: Duplicate identifier 'assetsUrl'.
typings/main/ambient/auth0.lock/index.d.ts(48,5): error TS2300: Duplicate identifier 'useCordovaSocialPlugins'.
typings/main/ambient/auth0.lock/index.d.ts(56,29): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(56,51): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/main/ambient/auth0.lock/index.d.ts(57,56): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(57,78): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/main/ambient/auth0.lock/index.d.ts(61,35): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(61,57): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/main/ambient/auth0.lock/index.d.ts(62,62): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(62,84): error TS2304: Cannot find name 'Auth0UserProfile'.
typings/main/ambient/auth0.lock/index.d.ts(66,35): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(67,62): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(71,34): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(72,61): error TS2304: Cannot find name 'Auth0Error'.
typings/main/ambient/auth0.lock/index.d.ts(77,18): error TS2304: Cannot find name 'Auth0Static'.
typings/main/ambient/auth0.lock/index.d.ts(83,5): error TS2300: Duplicate identifier 'export='.
typings/main/ambient/es6-shim/index.d.ts(8,14): error TS2300: Duplicate identifier 'PropertyKey'.
typings/main/ambient/es6-shim/index.d.ts(11,5): error TS2300: Duplicate identifier 'done'.
typings/main/ambient/es6-shim/index.d.ts(12,5): error TS2300: Duplicate identifier 'value'.
typings/main/ambient/es6-shim/index.d.ts(105,5): error TS2300: Duplicate identifier 'bold'.
typings/main/ambient/es6-shim/index.d.ts(250,5): error TS2300: Duplicate identifier 'EPSILON'.
typings/main/ambient/es6-shim/index.d.ts(285,5): error TS2300: Duplicate identifier 'MAX_SAFE_INTEGER'.
typings/main/ambient/es6-shim/index.d.ts(292,5): error TS2300: Duplicate identifier 'MIN_SAFE_INTEGER'.
typings/main/ambient/es6-shim/index.d.ts(348,5): error TS2300: Duplicate identifier 'flags'.
typings/main/ambient/es6-shim/index.d.ts(477,11): error TS2300: Duplicate identifier 'Promise'.
typings/main/ambient/es6-shim/index.d.ts(496,11): error TS2300: Duplicate identifier 'PromiseConstructor'.
typings/main/ambient/es6-shim/index.d.ts(500,5): error TS2300: Duplicate identifier 'prototype'.
typings/main/ambient/es6-shim/index.d.ts(554,13): error TS2300: Duplicate identifier 'Promise'.
typings/main/ambient/es6-shim/index.d.ts(563,5): error TS2300: Duplicate identifier 'size'.
typings/main/ambient/es6-shim/index.d.ts(572,5): error TS2300: Duplicate identifier 'prototype'.
typings/main/ambient/es6-shim/index.d.ts(583,5): error TS2300: Duplicate identifier 'size'.
typings/main/ambient/es6-shim/index.d.ts(592,5): error TS2300: Duplicate identifier 'prototype'.
typings/main/ambient/es6-shim/index.d.ts(607,5): error TS2300: Duplicate identifier 'prototype'.
typings/main/ambient/es6-shim/index.d.ts(621,5): error TS2300: Duplicate identifier 'prototype'.
typings/main/ambient/jasmine/index.d.ts(11,18): error TS2300: Duplicate identifier 'describe'.
typings/main/ambient/jasmine/index.d.ts(13,18): error TS2300: Duplicate identifier 'xdescribe'.
typings/main/ambient/jasmine/index.d.ts(15,18): error TS2300: Duplicate identifier 'it'.
typings/main/ambient/jasmine/index.d.ts(16,18): error TS2300: Duplicate identifier 'it'.
typings/main/ambient/jasmine/index.d.ts(19,18): error TS2300: Duplicate identifier 'xit'.
typings/main/ambient/jasmine/index.d.ts(20,18): error TS2300: Duplicate identifier 'xit'.
typings/main/ambient/jasmine/index.d.ts(74,9): error TS2300: Duplicate identifier 'length'.
typings/main/ambient/jasmine/index.d.ts(75,9): error TS2375: Duplicate number index signature.
typings/main/ambient/jasmine/index.d.ts(129,9): error TS2374: Duplicate string index signature.
typings/main/ambient/jasmine/index.d.ts(133,9): error TS2300: Duplicate identifier 'pass'.
typings/main/ambient/jasmine/index.d.ts(134,9): error TS2300: Duplicate identifier 'message'.
typings/main/ambient/jasmine/index.d.ts(144,9): error TS2300: Duplicate identifier 'setTimeout'.
typings/main/ambient/jasmine/index.d.ts(145,9): error TS2300: Duplicate identifier 'clearTimeout'.
typings/main/ambient/jasmine/index.d.ts(146,9): error TS2300: Duplicate identifier 'setInterval'.
typings/main/ambient/jasmine/index.d.ts(147,9): error TS2300: Duplicate identifier 'clearInterval'.
typings/main/ambient/jasmine/index.d.ts(148,9): error TS2300: Duplicate identifier 'updateInterval'.
typings/main/ambient/jasmine/index.d.ts(150,9): error TS2300: Duplicate identifier 'currentSpec'.
typings/main/ambient/jasmine/index.d.ts(152,9): error TS2300: Duplicate identifier 'matchersClass'.
typings/main/ambient/jasmine/index.d.ts(198,9): error TS2300: Duplicate identifier 'type'.
typings/main/ambient/jasmine/index.d.ts(202,9): error TS2300: Duplicate identifier 'description'.
typings/main/ambient/jasmine/index.d.ts(204,9): error TS2300: Duplicate identifier 'totalCount'.
typings/main/ambient/jasmine/index.d.ts(205,9): error TS2300: Duplicate identifier 'passedCount'.
typings/main/ambient/jasmine/index.d.ts(206,9): error TS2300: Duplicate identifier 'failedCount'.
typings/main/ambient/jasmine/index.d.ts(208,9): error TS2300: Duplicate identifier 'skipped'.
typings/main/ambient/jasmine/index.d.ts(218,9): error TS2300: Duplicate identifier 'values'.
typings/main/ambient/jasmine/index.d.ts(219,9): error TS2300: Duplicate identifier 'trace'.
typings/main/ambient/jasmine/index.d.ts(223,9): error TS2300: Duplicate identifier 'matcherName'.
typings/main/ambient/jasmine/index.d.ts(225,9): error TS2300: Duplicate identifier 'expected'.
typings/main/ambient/jasmine/index.d.ts(226,9): error TS2300: Duplicate identifier 'actual'.
typings/main/ambient/jasmine/index.d.ts(227,9): error TS2300: Duplicate identifier 'message'.
typings/main/ambient/jasmine/index.d.ts(228,9): error TS2300: Duplicate identifier 'trace'.
typings/main/ambient/jasmine/index.d.ts(232,9): error TS2300: Duplicate identifier 'name'.
typings/main/ambient/jasmine/index.d.ts(233,9): error TS2300: Duplicate identifier 'message'.
typings/main/ambient/jasmine/index.d.ts(234,9): error TS2300: Duplicate identifier 'stack'.
typings/main/ambient/jasmine/index.d.ts(257,9): error TS2300: Duplicate identifier 'env'.
typings/main/ambient/jasmine/index.d.ts(258,9): error TS2300: Duplicate identifier 'ensured'.
typings/main/ambient/jasmine/index.d.ts(259,9): error TS2300: Duplicate identifier 'blocks'.
typings/main/ambient/jasmine/index.d.ts(260,9): error TS2300: Duplicate identifier 'running'.
typings/main/ambient/jasmine/index.d.ts(261,9): error TS2300: Duplicate identifier 'index'.
typings/main/ambient/jasmine/index.d.ts(262,9): error TS2300: Duplicate identifier 'offset'.
typings/main/ambient/jasmine/index.d.ts(263,9): error TS2300: Duplicate identifier 'abort'.
typings/main/ambient/jasmine/index.d.ts(278,9): error TS2300: Duplicate identifier 'env'.
typings/main/ambient/jasmine/index.d.ts(279,9): error TS2300: Duplicate identifier 'actual'.
typings/main/ambient/jasmine/index.d.ts(280,9): error TS2300: Duplicate identifier 'spec'.
typings/main/ambient/jasmine/index.d.ts(281,9): error TS2300: Duplicate identifier 'isNot'.
typings/main/ambient/jasmine/index.d.ts(303,9): error TS2300: Duplicate identifier 'not'.
typings/main/ambient/jasmine/index.d.ts(305,9): error TS2300: Duplicate identifier 'Any'.
typings/main/ambient/jasmine/index.d.ts(344,9): error TS2300: Duplicate identifier 'id'.
typings/main/ambient/jasmine/index.d.ts(345,9): error TS2300: Duplicate identifier 'env'.
typings/main/ambient/jasmine/index.d.ts(346,9): error TS2300: Duplicate identifier 'description'.
typings/main/ambient/jasmine/index.d.ts(347,9): error TS2300: Duplicate identifier 'queue'.
typings/main/ambient/jasmine/index.d.ts(354,9): error TS2300: Duplicate identifier 'suite'.
typings/main/ambient/jasmine/index.d.ts(356,9): error TS2300: Duplicate identifier 'afterCallbacks'.
typings/main/ambient/jasmine/index.d.ts(357,9): error TS2300: Duplicate identifier 'spies_'.
typings/main/ambient/jasmine/index.d.ts(359,9): error TS2300: Duplicate identifier 'results_'.
typings/main/ambient/jasmine/index.d.ts(360,9): error TS2300: Duplicate identifier 'matchersClass'.
typings/main/ambient/jasmine/index.d.ts(385,9): error TS2300: Duplicate identifier 'id'.
typings/main/ambient/jasmine/index.d.ts(393,9): error TS2300: Duplicate identifier 'parentSuite'.
typings/main/ambient/jasmine/index.d.ts(416,9): error TS2300: Duplicate identifier 'identity'.
typings/main/ambient/jasmine/index.d.ts(417,9): error TS2300: Duplicate identifier 'and'.
typings/main/ambient/jasmine/index.d.ts(418,9): error TS2300: Duplicate identifier 'calls'.
typings/main/ambient/jasmine/index.d.ts(419,9): error TS2300: Duplicate identifier 'mostRecentCall'.
typings/main/ambient/jasmine/index.d.ts(420,9): error TS2300: Duplicate identifier 'argsForCall'.
typings/main/ambient/jasmine/index.d.ts(421,9): error TS2300: Duplicate identifier 'wasCalled'.
typings/main/ambient/jasmine/index.d.ts(458,9): error TS2300: Duplicate identifier 'object'.
typings/main/ambient/jasmine/index.d.ts(460,9): error TS2300: Duplicate identifier 'args'.
typings/main/ambient/jasmine/index.d.ts(473,9): error TS2300: Duplicate identifier 'started'.
typings/main/ambient/jasmine/index.d.ts(474,9): error TS2300: Duplicate identifier 'finished'.
typings/main/ambient/jasmine/index.d.ts(475,9): error TS2300: Duplicate identifier 'result'.
typings/main/ambient/jasmine/index.d.ts(476,9): error TS2300: Duplicate identifier 'messages'.
typings/main/ambient/jasmine/index.d.ts(490,9): error TS2300: Duplicate identifier 'Spec'.
typings/main/ambient/jasmine/index.d.ts(491,9): error TS2300: Duplicate identifier 'clock'.
typings/main/ambient/jasmine/index.d.ts(492,9): error TS2300: Duplicate identifier 'util'.
typings/main/ambient/zone.js/index.d.ts(8,15): error TS2300: Duplicate identifier 'Zone'. |
Any change of this bug?? |
@joseSantacruz I have tried your configuration, but it doesn't give an error here. Tested on Windows and Mac. Can you share your full repository? Or create a minimal reproduction? I still haven't got a reproduction that shows these kinds of errors, so it's hard to see what's going on and fix it. |
Same problem for me |
@jdelobel Can you share your project? |
Solution: I resolve the problem by including this reference in my bootstrap file:
|
@jdelobel Which errors did you get before that fix? |
Sorry this reference fix "error TS2304: Cannot find name" errors |
FYI Duplicate identifier error is a problem with commonjs module note with systemjs |
I was having the same issue until I restructured my gulpfile.js to use the tsProject src instead of the gulp src. This works in my project. tsconfig.js{
"compilerOptions": {
"watch":true,
"outDir": "dist",
"target": "ES5",
"module": "system",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"removeComments": true,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true
},
"exclude": [
"node_modules"
]
} gulpfile.jsconst gulp = require('gulp');
const gulpTypescript = require('gulp-typescript');
const tscConfig = require('./tsconfig.json');
const sourcemaps = require('gulp-sourcemaps');
const tsProject = typescript.createProject('tsconfig.json');
// Compile TypeScript
gulp.task('compile', ['clean'], function () {
return tsProject.src()
.pipe(sourcemaps.init())
.pipe(gulpTypescript(tscConfig.compilerOptions))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist'));
}); |
@tjsampson That's the expected behavior. gulp-typescript compiles all files that you pass to it. |
Getting similar errors after going through and reading all the posts and making adjustments to my gulp file and tsconfig.json file. See below: [11:06:37] Starting 'ts'... Gulp task: //ts - task to transpile TypeScript files to JavaScript using Gulp-TypeScript tsconfig.json: //ts - task to transpile TypeScript files to JavaScript using Gulp-TypeScript Can someone please help me? |
Eureka! I just started encountering the "Duplicate Identifier" issue; despite placing the node_modules directory in my tsconfig's exclude list, I was getting errors that indicated .d.ts files from sub-directories of that directory were being included. The weird part is that on one of my boxes, the issue doesn't repro, while it does on my Jenkins build agent. I just spent the better part of a day poking at it with sticks of various sharpness and believe I have isolated (at least part of) the cause. On one box, the path is composed of "simple" characters (e.g.: c:\Projects\SomeProject\src) and on one, it has "special" characters: (e.g.: C:\Program Files(x86)\Jenkins\jobs\SomeProject\workspace\src). I experimented a bit, and the problem only seems to appear when I add parentheses: It's almost like the vinyl stream doesn't know how to handle those parens when resolving the file list. Any chance it's using a regular expression engine and interpreting the (...) as a capture group? |
I think @ahopper-soltech was right with his analysis. Previously, gulp-typescript would create a glob that was passed to |
Oops, I was referring to 98eca4a. |
Thanks, @ivogabe! Is there anything we can do to help get a new release out? Testing, etc.? |
You may try it on your own project, I've published the new version on NPM. |
gulp-typescript compile errors in node_modules even though they are excluded. As per this article ivogabe/gulp-typescript#275 the syntax I was using for gulp-typescript was causing the issue.
When I compiled my project I would get lines and lines of errors on the definition files in my node_modules folder. My solution was to ignore the definitions by overriding typeRoots in the typescript config file: {
"compilerOptions": {
"target": "es5",
"module": "none",
"sourceMap": false,
"typeRoots": [],
"allowUnusedLabels": true,
"strictNullChecks": true
},
"include": [
"resources/*.ts"
],
"exclude": [
"node_modules"
]
} |
This is working for me. The trick was using
|
Hi,
I excluded the node_modules in my tsconfig file, with the native typescript compiler it works fine.
But with gulp-typescript it shows the output declaration file errors from node.
"/node_modules/angular2/typings/jasmine/jasmine.d.ts(72,9): error TS2300: Duplicate identifier 'length'.
...
...
typings\jasmine\jasmine.d.ts(131,9): error TS2300: Duplicate identifier 'pass'.
...."
My code:
My tsconfig:
Do you have any idea, how I get the error messages? Does the exclude folder works right?
Gregor
The text was updated successfully, but these errors were encountered: