Skip to content

🐜 Uncaught empty CodeExample error #859

Closed

Description

@JFWooten4

What version are you using?

stellar version 11.1.0

What did you do?

Create a code example with no content:

<CodeExample>

</CodeExample>

What did you expect to see?

× Error: empty CodeExample block at line XYZ.

What did you see instead?

Unclear error message (full below) or abbreviated to only Docusaurus error: the <Tabs> component requires at least one <TabItem> children component

Uncaught runtime errors:
× ERROR
Docusaurus error: the <Tabs> component requires at least one <TabItem> children component
    at getInitialStateValue (webpack-internal:///./node_modules/@docusaurus/theme-common/lib/utils/tabsUtils.js:22:1108)
    at eval (webpack-internal:///./node_modules/@docusaurus/theme-common/lib/utils/tabsUtils.js:25:275)
    at mountState (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:16987:20)
    at Object.useState (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:17700:16)
    at useState (webpack-internal:///./node_modules/react/cjs/react.development.js:1624:21)
    at useTabs (webpack-internal:///./node_modules/@docusaurus/theme-common/lib/utils/tabsUtils.js:25:270)
    at TabsComponent (webpack-internal:///./node_modules/@docusaurus/theme-classic/lib/theme/Tabs/index.js:20:515)
    at renderWithHooks (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:16306:18)
    at mountIndeterminateComponent (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:20070:13)
    at beginWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:21583:16)

Activity

  1. added
    bug
    on Aug 2, 2024
  2. moved this from Backlog to Done in Dev Docson Jan 7, 2025
  3. JFWooten4 commented on Jul 27, 2026

    @JFWooten4
    ContributorAuthor

    For anyone wondering, the solution is incorporated:

    <!-- EMPTY LINE AFTER THE COMPONENT'S OPENING TAG IS REQUIRED -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions