Common Issues with MDX

Enabling MDX#

There are 3 ways to enable mdx in your lesson files

  • use .mdx extension when naming your lesson files e.g module_00/lesson_01/welcome.mdx

  • add usemdx: true to course/config.js

  • add useMdx: true at the top of your lesson like so:

Importing components in your lessons#

To import components in .md files, use ~ alias which points to the root of your course folder