xyc / vscode-mdx-preview

MDX Preview for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=xyc.vscode-mdx-preview
GNU General Public License v3.0
173 stars 12 forks source link

Issue with docusaurus Tab/TabItem #109

Open mikeerickson opened 2 years ago

mikeerickson commented 2 years ago

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 commented 1 year ago

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 commented 7 months ago

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!