-
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
@link not resolving across packages #2681
Comments
https://github.com/Gerrit0/typedoc-packages-example/compare/typedoc-gh2681 seems to work... without a reproduction, I can't possibly fix this. The fix for #2680 might possibly have fixed this... impossible to say. |
Not fixed. I'll see what I can do about setting up a reproducible case for this and for #2680. |
Here you go. |
So there's a couple things here... TypeDoc should be reporting a broken The link is not resolved because TypeDoc is resolving imports for unrelated projects via file paths and when converting utility TypeDoc finds that There are a few ways to fix this.
|
I'll look into that and let you know. The repository I gave you was vastly simplified. In reality, the utility package appears in the gs1 package.json as a dependency, with "npm link" used to bridge the directories. In that architecture, my import looks like this:
I replaced it with a reference to the |
One more thought... The reason I expected it to work was because I was explicitly declaring, in my core |
But when generating docs for utility, TypeDoc is told to look at that source! That's what's causing the disconnect here. TypeDoc doesn't just match on symbol names as they aren't necessarily (or even likely!) globally unique. It also considers the file name that symbols originate in. If you generated docs for the utility module with the tsup generated declaration file, then the links would have worked as you expected. (Even if you had generated gs1 first, TypeDoc stores a |
Search terms
link url package resolve
Expected Behavior
This is
typedoc.json
for my documentation project:Every package has a similar
typedoc.json
; this is the one for the "gs1" package:This is from variable documentation in the "gs1" package in my code:
Exclusion
is an enumeration in the "utility" package, of whichAllNumeric
is a member.What I expect to see in the HTML is this:
Actual Behavior
What I'm getting instead is no link at all:
Steps to reproduce the bug
As above. If I change the link target to something unresolvable, I get a warning message in the console:
It seems that TypeDoc is resolving the link, but not rendering it.
Environment
The text was updated successfully, but these errors were encountered: