Instale o MDX para NextJs
npm install --save @next/mdx @mdx-js/loader
Old-fashioned Ostrich
npm install --save @next/mdx @mdx-js/loader