-
Notifications
You must be signed in to change notification settings - Fork 700
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
TypeDoc crashes during link resolver #2496
Comments
This is probably caused by 6370490, specifically 6370490#diff-28b49c0a2528c726938d5b8ad6f68b2b12e25994b5cfb3d55b449447e2fcc09dR255 Going to be difficult to fix the underlying issue with this without a reproduction, as that assert ought to be safe in this context. Just fixing the symptom is easy, but not the right thing to do from my current understanding of that, which is admittedly a month and a bit old now... have been lots of other problems to take up brain space. |
Are you running with any plugins? I looked at the reflection removal code again, and am not seeing anything obvious which would cause this issue.. |
I get the same error message, with this little code snippet: const f = () => 1;
/** doc
*/
export type ReturnOfF = ReturnType<typeof f>; and when I run |
We are using typedoc-plugin-markdown and typedoc-plugin-merge-modules. (But the symptom likely is related to what @ebekebe wrote above - we definitely use |
I put that snippet into a project and can't seem to reproduce still: All of these generate docs successfully: npx typedoc@0.25.5 src/gh2496.ts
npx typedoc@0.25.5 src/gh2496.ts --excludeNotDocumented
npx typedoc@latest src/gh2496.ts --excludeNotDocumented I also tried exporting/not exporting |
Apologies, I couldn't reproduce it with my above snippet either. I don't know where the mistake happened, but here is the slightly modified version that does fail: export function f() {
return 1
}
/** doc
*/
export type ReturnOfF = ReturnType<typeof f>; and the command:
|
Thanks! That does it, very confused as to why I used to symbol in removeReflection now... |
Search terms
LinkResolverPlugin, kindOf, unexpected error
Expected Behavior
My typedoc compiled fine on version 0.25.4, and I expected it to continue to work with 0.25.5.
Actual Behavior
When upgrading typedoc to 0.25.5, it now crashes with the following message:
The same is true for higher versions, like 0.25.7.
Steps to reproduce the bug
Upgrade from version <= 0.25.4 to version >= 0.25.5, and rerun.
In case it is useful, in version <= 0.25.4 we get warnings to the effect of
X, defined in /.../example.ts, is referenced by Y but not included in the documentation.
Perhaps these are causing an issue in the newer versions of TypeDoc?I'm sorry I can't provide any more information. Our project is reasonably large (and private). I'm hoping you can identify the issue by figuring out what changed between 0.25.4 and 0.25.5.
Environment
The text was updated successfully, but these errors were encountered: