Skip to content

Commit 3243435

Browse files
fix(mdx): Map missing custom MDX components (Mode, Node, W, I) to resolve SSR ReferenceError
1 parent edfae50 commit 3243435

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mdx-components.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Badge from './components/Badge/Badge';
22
import LinkComponent from './components/mdxComponents/Link';
33
import StackBlitzPreview from './components/StackBlitzPreview/StackBlitzPreview';
44
import CodeBlockWithCopy from './components/CodeBlockWithCopy/CodeBlockWithCopy';
5+
import { Mode, Node, W, I } from './components/Configuration/components';
56

67
/** @returns {import('mdx/types.js').MDXComponents} */
78
export function useMDXComponents() {
@@ -10,5 +11,9 @@ export function useMDXComponents() {
1011
Badge: Badge,
1112
StackBlitzPreview: StackBlitzPreview,
1213
pre: CodeBlockWithCopy,
14+
Mode: Mode,
15+
Node: Node,
16+
W: W,
17+
I: I,
1318
};
1419
}

0 commit comments

Comments
 (0)