typedoc2md / typedoc-plugin-markdown

A plugin for TypeDoc that enables TypeScript API documentation to be generated in Markdown.
https://typedoc-plugin-markdown.org
MIT License
691 stars 171 forks source link

Cannot read properties of undefined (reading 'outputFileStrategy') #527

Closed ocavue closed 6 months ago

ocavue commented 7 months ago

After updating typedoc-plugin-markdown from 4.0.0-next.36 to 4.0.0-next.37, I get the following error.

TypeDoc exiting with unexpected error:
TypeError: Cannot read properties of undefined (reading 'outputFileStrategy')
    at eval (file:///home/issueset/typedoc-markdown-strategy-issue/node_modules/.pnpm/typedoc-plugin-markdown@4.0.0-next.37_typedoc@0.25.4/node_modules/typedoc-plugin-markdown/dist/theme/urls-context.js:75:56)

This error happens if there is only one item in the entryPoints. Like this:

{
  "$schema": "https://typedoc.org/schema.json",
  "extends": [
    "./config/typedoc-base.json"
  ],
  "entryPointStrategy": "packages",
  "entryPoints": [
    "./packages/pkg2"
  ],
  "out": "out"
}

Minimal reproduction:

https://pr.new/github.com/issueset/typedoc-markdown-strategy-issue

tgreyuk commented 7 months ago

thanks - please try typedoc-plugin-markdown@4.0.0-next.38.

ocavue commented 6 months ago

It works on 4.0.0-next.38. Thank you!