typedoc
typedoc copied to clipboard
typedoc errors failing the TFS build even after using ignoreCompilerErrors.
// typedoc.config.json
{
"module": "commonjs",
"experimentalDecorators": "true",
"target": "es5",
"out": "doc/",
"exclude": "**/*+(spec).ts",
"name": "Component Library",
"theme": "default",
"ignoreCompilerErrors": true,
"excludePrivate": true,
"mode": "file",
"readme": "README.md",
"hideGenerator": true
}
gulp task
gulp.task('generate-typedoc', function () {
return gulp
.src(`${sLibPath}**/*.ts`)
.pipe(typedoc(typedocConfig)
);
});
Task Runner log
[12:14:47] Starting 'generate-typedoc'...
[12:14:58] D:/DevelopmentEnv/VFramework/Development/VFramework/VFramework/node_modules/@angular/core/src/change_detection/differs/default_iterable_differ.d.ts(11)
Cannot find name 'Iterable'.
[12:14:58] D:/DevelopmentEnv/VFramework/Development/VFramework/VFramework/node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(13)
Cannot find name 'Iterable'.
[12:14:58] D:/DevelopmentEnv/VFramework/Development/VFramework/VFramework/node_modules/rxjs/Observable.d.ts(57)
'Promise' only refers to a type, but is being used as a value here.
[12:14:58] D:/DevelopmentEnv/VFramework/Development/VFramework/VFramework/node_modules/rxjs/Observable.d.ts(72)
'Promise' only refers to a type, but is being used as a value here.
[12:14:59] Finished 'generate-typedoc' after 12 s
Process terminated with code 0.
Build log
2018-02-08T12:14:56.5162367Z [04:14:56] Starting 'generate-typedoc'...
2018-02-08T12:15:13.8923966Z [04:15:13] [31mD:/PDAgents-SI-PROD/Agent1/_work/83/s/VFramework/node_modules/@angular/core/src/change_detection/differs/default_iterable_differ.d.ts(11)
2018-02-08T12:15:13.8923966Z Cannot find name 'Iterable'.[39m
2018-02-08T12:15:13.8923966Z [04:15:13] [31mD:/PDAgents-SI-PROD/Agent1/_work/83/s/VFramework/node_modules/@angular/core/src/change_detection/differs/iterable_differs.d.ts(13)
2018-02-08T12:15:13.8923966Z Cannot find name 'Iterable'.[39m
2018-02-08T12:15:14.0330286Z [04:15:13] [31mD:/PDAgents-SI-PROD/Agent1/_work/83/s/VFramework/node_modules/rxjs/Observable.d.ts(57)
2018-02-08T12:15:14.0330286Z 'Promise' only refers to a type, but is being used as a value here.[39m
2018-02-08T12:15:14.0486548Z Gulp failed with error: C:\Program Files\nodejs\node.exe failed with return code: 1
2018-02-08T12:15:14.0486548Z [04:15:13] [31mD:/PDAgents-SI-PROD/Agent1/_work/83/s/VFramework/node_modules/rxjs/Observable.d.ts(72)
2018-02-08T12:15:14.0642814Z 'Promise' only refers to a type, but is being used as a value here.[39m
2018-02-08T12:15:14.0642814Z [04:15:13] [31mCould not create output directory D:\PDAgents-SI-PROD\Agent1\_work\83\s\VFramework\doc[39m
2018-02-08T12:15:14.0642814Z [04:15:13] [31mDocumentation could not be generated due to the errors above.[39m
2018-02-08T12:15:14.0642814Z [04:15:13] 'generate-typedoc' errored after 17 s
2018-02-08T12:15:14.0642814Z [04:15:13] [31mError[39m in plugin "[36mgulp-typedoc[39m"
2018-02-08T12:15:14.0642814Z Message:
2018-02-08T12:15:14.0642814Z There were errors generating TypeDoc output, see above.
As of now I build is set to continue on error for the typedoc.
Is there any solution for this.
@aciccarello any solution for this?
This isn't a problem with TypeDoc. TypeDoc will correctly ignore errors if you have set ignoreCompilerErrors to true.
The error you are seeing is caused by gulp-typedoc. See https://github.com/rogierschouten/gulp-typedoc/blob/master/index.js#L61 that plugin should only be emitting an error if the option isn't set instead of always emitting an error if TypeDoc reports an error.