code-hike / codehike

Build rich content websites with Markdown and React
https://codehike.org
MIT License
4.79k stars 149 forks source link

MDX Transclusion throws runtime error #18

Closed ericclemmons closed 2 years ago

ericclemmons commented 3 years ago

When playing with https://github.com/code-hike/react-tutorial-demo, if you do import Something from "something.mdx" then <Something />, you'll get the following error:

Screen Shot 2020-12-16 at 5 33 49 PM

I tried to figure out why, but the steps / sections difference for <Something /> wasn't immediately clear 🤔

pomber commented 3 years ago

Where are you importing it? In tutorial.mdx?