-
Hello! I'm developing a SSG using Vite and MDX. I'm passing some components in Here is the Provider: https://github.com/gaurishhs/documentum/blob/main/packages/documentum/src/theme/DocsLayout.tsx#L45 Please help me out.. |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Jan 15, 2023
Replies: 2 comments 19 replies
-
hi!
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
gaurishhs
-
No they are not.. Im not importing mdx files they get compiled to Jsx ones
…On Sun, 15 Jan 2023, 20:08 Titus, ***@***.***> wrote:
Are they mdx files?
If you send post to one friend, do you expect it to be delivered to your
other friend?
You can pass components to an mdx component. Passing then to random other
components doesn't do anything.
—
Reply to this email directly, view it on GitHub
<#2225 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZRZB2HQG6WAXCEB7BYEQ3WSQDU3ANCNFSM6AAAAAAT32DCZA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi!
jsxImportSource
for@mdx-js/react
. That is wrong.jsxImportSource
is something different. A provider is not a JSX import source. If you use react, you don’t touchjsxImportSource
. If you want a provider, you useproviderImportSource
: https://mdxjs.com/packages/mdx/#optionsproviderimportsource