Skip to content

Docusaurus error: the <Tabs> component requires at least one <TabItem> children component #1086

@gotson

Description

@gotson

Describe the bug

When accessing a page for an API endpoint that has quite a complex/extensive schema, the page crashes.

Expected behavior

The page should show properly.

Current behavior

The page crashes with the following error message:

Steps to reproduce

  1. build the Open API spec from https://raw.githubusercontent.com/gotson/komga/f46e0406f970b8bc3fb15b812c92d0f75204528b/komga/docs/openapi.json
  2. Try to access the page called get-series-list (the endpoint is POST /api/v1/series/list)

Screenshots

Image

Context

If i replace the generated <RequestSchema> with something simpler like:

<RequestSchema
    title={"Body"}
    body={undefined}
></RequestSchema>

then the page shows properly.

It seems that rendering the schema makes the page crash.

Your Environment

  • Version used: 4.3.3
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): Firefox 135, Node.js 22
  • Operating System and version (desktop or mobile): macOS 15.2
  • Link to your project: https://github.com/gotson/komga-website

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions