Error with mdx file webpack parser
I am trying to integrate an MDX files that I want blog articles in. I have a component <ArticleLayout meta={meta} {...props} />
I am using a TailwindUI template as a backbone for the some of the implementation and there it works fine. https://tailwindui.com/templates/spotlight
I have this export in order to render the page like this. But in the end I get the following error:
I am not using webpack and don't even have a webpack config
Spotlight - Tailwind CSS Personal Website Template
We get it — you’ve got a blog post you’re dying to write but you can’t write it until you rebuild your personal site. We’ve got you covered, get back to writing.
2 Replies
have you configured next.js to work with mdx? details: https://nextjs.org/docs/advanced-features/using-mdx
Advanced Features: Using MDX | Next.js
Learn how to use @next/mdx in your Next.js project.
Thanks that solved it for me