Skip to content
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

Issue with docusaurus Tab/TabItem #109

Open
mikeerickson opened this issue Jun 11, 2022 · 2 comments
Open

Issue with docusaurus Tab/TabItem #109

mikeerickson opened this issue Jun 11, 2022 · 2 comments

Comments

@mikeerickson
Copy link

I have an mdx document using Docusaurus and am receiving an error when I attempt to preview

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs>
  <TabItem value="template" label="Template" default>
    Hello World
  </TabItem>
</Tab>

Receive the following error

CleanShot 2022-06-10 at 18 27 08

This page renders correctly when viewing the documentation page.

@nijikokun
Copy link

nijikokun commented Mar 29, 2023

Encountering this as well.

Even if you use the relative path:

import Tabs from '@docusaurus/theme-classic/lib/theme/Tabs';
import TabItem from '@docusaurus/theme-classic/lib/theme/TabItem';

You get:

Screenshot 2023-03-29 at 12 34 00 PM

@mhowes-veracode
Copy link

Getting this error as well. More of our content is moving from MD to MDX, so React support is becoming more important for us. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants