Next.js Discord

Discord Forum

Webpack thinks video src is .mdx in my markdown, tries to import it

Unanswered
English Lop posted this in #help-forum
Open in Discord
English LopOP
I have the following literal HTML in my .mdx file (it's a blog post):

<video controls="controls" width="800" height="600" name="Video Name">
  <source src="replit-turtle-demo.mov" type="video/mp4" />
</video>


However webpack sees this URI and tries to import it as another .mdx, which it's not:
- error Error: Cannot find module './replit-turtle-demo.mov.mdx'
    at /Users/ml/Code/mzchael.com/.next/server/app/blog/[slug]/page.js:30:12
    at async Post (./src/app/blog/[slug]/page.tsx:11:42)

0 Replies