Closed Ks89 closed 5 years ago
Your compiler is still using 3.0.3 and not 3.1.1
Yes as @legalbrickstechnology-dcm noted, TypeDoc is using its own version of TypeScript. This is because it uses some internal TypeScript apis that aren't guaranteed to be stable. This should be fixed by #863
I am hitting this too, also triggered by typedoc. i took a look at @angular/core/src/application_init.d.ts(21)
-- not claiming any TS expertise, but lines 21 and 22 do this:
readonly donePromise: Promise<any>;
readonly done = false;
by typing and assigning values in those two lines, it seems to violate TS's ambient context rule for declaration files. if i edit this file to just have properties like so:
readonly donePromise;
readonly done;
I get past this error (but there are more in the error stack).
should this be reported to Angular team?
Potentially could be raised to angular, seems they have created an issue where rc0 (as far as i can see) is reliant on the 3.1.1 TypeScript compiler which they haven't stated as a breaking change.
It is angular7-rc.0 adding support for TypeScript 3.1.1 that seems to be the issue .. Should work fine with angular7-beta7.
Typedoc has been updated to TypeScript 3.1.x which I believe should resolve this issue when Angular supports TypeScript 3.1
You can try this out at typedoc@next
I will confirm 0.13.0-0 allows for a successful typedoc on my angular project. Thanks!
thank u for the support. It's working. Issue closed
I'm using typedoc 0.12.0, typescript 3.1.1 with Angular 7.0.0 rc.0 and angular-cli 7.0.0-beta.4
I have an Angular library built with the standard method using angular-cli library features.
I want to generare the doc of my lib running:
typedoc --out ./docs/typedoc --mode file --target ES6 --exclude **/*.spec.ts ./projects/ks89/angular-modal-gallery
but I receive this error:
Do you have any suggestions?