-
Notifications
You must be signed in to change notification settings - Fork 708
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
Package.json exports restriction breaks external plugins #1696
Comments
I am also getting this problem. I encountered it using typedoc as expected but it throws the same error you are getting.
A solution is to include my version of typedocs package.json to hold a converter reference Obviously this isn't good, so please escalate this issue |
This change was intentional - if you are using/want to use something that isn't exported, I want to know! Knowing means I can try to avoid breaking your plugin while refactoring, particularly during patch releases, and can better curate the public API. Exporting MarkdownEvent seems reasonable to me, PR welcome, or I'll probably get to it this weekend. What are you using getRawComment for? Whatever it is, it'll almost certainly break once https://github.com/TypeStrong/typedoc/projects/11 is done, which is likely what I'll be chasing for 0.23. Everything from converter.ts is exported from the root, so @FireAndIceFrog's problem should be resolved by importing from "typedoc" rather than the internal path. |
This change broke our CI (in the exact way reported by @FireAndIceFrog) so I've created a simple 'hot fix' for this until the plugins are updated (though they do look impressively well maintained so I'd imagine that'll probably happen fairly soon). https://gist.github.com/SamJakob/6fd2f06cc38242557e5d2d50fbe7a157 (!) Naturally, as the point of this change was to raise an alert if something wasn't exported, if you do intend to use my fix, I encourage you to report an issue you're having before using this fix. |
@Gerrit0 Seems this issue can be seen in kamiazya/typedoc-plugin-mermaid#441 as well. Looks like it mostly revolves around usage of |
Plugins should not be using either of those. Both are going to be completely removed from TypeDoc's codebase, probably in 0.23 |
Search Terms
Problem
Prior to 0.22.0, you could import specific TypeDoc classes and functions that made plugin development simpler:
However, in the 0.22.0 release a change was made to
package.json
which no longer allows this: 4f33ff8Leading to this error:
Suggested Solution
Remove
exports
from package.jsonOR
While tedious, we could add any files that might be useful to external plugins.
The text was updated successfully, but these errors were encountered: