-
Notifications
You must be signed in to change notification settings - Fork 182
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
[warning] TypeDoc has been loaded multiple times. This is commonly caused by plugins which have their own installation of TypeDoc. #676
Comments
Unfortunately I am unable to debug this with the required information. I assume your setup isn't available on a public repo? |
yes unfortunately nope, what do you need, I get the above warning as I run |
Typedoc is only a peer dependency. Do you get the same warning in the markdown plugin is the only plugin if the plugins list? |
If I remove mardown plugin, typedoc gets generated obviously as HTML |
Yes "obviously" it does. I meant do you get the warning if its the only plugin ie: |
Yes
|
It seems that TypeDoc is being installed twice in your node modules, but typedoc is only a peer dependency of this plugin. Without an reproducable example to test against I don't think any progress can be made on this one. |
This bug is most likely related to this: Note: If you install globally, be aware that npm/cli#7057 means that plugins and themes will get their own installation of TypeDoc unless you use the --legacy-peer-deps flag. This will break many plugins and cause warnings from TypeDoc. See: https://typedoc.org/guides/installation/#requirements I don't believe there is anything that can be done on the plugin side. |
What package is the bug related to?
typedoc-plugin-markdown
Describe the issue
[warning] TypeDoc has been loaded multiple times. This is commonly caused by plugins which have their own installation of TypeDoc.
The above warning prevents the instanceof checks for DeclarationReflection to fail and no docs are generated, if I remove plugin it works but obviously I like to get my MD file
TypeDoc configuration
{
"entryPoints": [
"src/index.ts"
],
"entryPointStrategy": "expand",
"excludePrivate": false,
"excludeProtected": false,
"excludeExternals": true,
"out": "./docs",
"hideGenerator": true,
"disableSources": true,
"navigationLinks": {
"Home": "~~~~my url~~~ REDACTED"
},
"expandObjects": true,
"expandParameters": true,
"plugin": [
"typedoc-plugin-zod",
"typedoc-plugin-markdown"
],
"excludeNotDocumented": false,
"excludeNotDocumentedKinds": [
"Variable"
],
"exclude": ["/node_modules/"]
}
Expected behavior
Expectation is it will create MD files of all my classes under docs folder that can be hosted as github pages
The text was updated successfully, but these errors were encountered: