You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the bun plugin in the official documentation because it seems that MDX can be used in a React project. But nothing has changed.
I have that bug and I'm configuring it using these mdx packages.
Bugs
Failed to execute 'createElement' on 'Document': The tag name provided ('http://localhost:3000/hash:blablabla') is not a valid name.
import{MDXProvider}from"@mdx-js/react";import{useState}from"react";importMDXfrom"./intro.mdx";constApp=()=>{const[count,setCount]=useState(1);return(<div><MDXProvider><MDX/> // How can I use MDX in bun create react project
</MDXProvider></div>);};exportdefaultApp;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I used the bun plugin in the official documentation because it seems that MDX can be used in a React project. But nothing has changed.
I have that bug and I'm configuring it using these mdx packages.
Bugs
Package.json (mdx packages)
react-app-env.d.ts
tsconfig.json
index.tsx
App.tsx
Beta Was this translation helpful? Give feedback.
All reactions