I have the plugin configured for our project, but I'm getting this error from VersionBanner when I try to render any documentation page:

In our configuration, the latest and current docs are both at v5, whereas some Markdown docs are at v4. The API docs are per-package, with multiple packages, and none of them really need to be versioned (always showing API docs for only the latest version is probably fine).
The problem is this line:
|
const latestVersionInfo = docs[latestVersion.label]; |
Where latestVersion is
{name: 'current', label: 'XState v5', isLast: true, path: '/docs', mainDocId: 'about', …}
And docs is:
{
4: {id: '/api', title: '4', description: '4'}
}
So docs['XState v5'] does not exist.
I'm using patch-package to bypass VersionBanner for now. Wondering if there's a simple fix for this I'm overlooking?
Project is here: statelyai/docs#288
I have the plugin configured for our project, but I'm getting this error from
VersionBannerwhen I try to render any documentation page:In our configuration, the latest and current docs are both at v5, whereas some Markdown docs are at v4. The API docs are per-package, with multiple packages, and none of them really need to be versioned (always showing API docs for only the latest version is probably fine).
The problem is this line:
docusaurus-plugin-typedoc-api/packages/plugin/src/components/VersionBanner.tsx
Line 20 in 9169c0e
Where
latestVersionisAnd docs is:
So
docs['XState v5']does not exist.I'm using
patch-packageto bypassVersionBannerfor now. Wondering if there's a simple fix for this I'm overlooking?Project is here: statelyai/docs#288