I tried the following below in a .mdx file, but it does not work. The error message and a screenshot of the file structure in my project are attached. In a normal .md file, I could reference images in the public directory, but I don't know if it's possible to put images and their associated pages in the same folder. Any help is appreciated!
---
title: Inline Images
description: A demonstration on inlining images in Astro with MDX files.
layout: ../layouts/MainLayout.astro
---
import polyGrid from "./poly-grid.svg";
import stackedPeaks from "./stacked-peaks.svg";
## Example Gallery
<img src={polyGrid} alt="A grid tiled by triangles of different shapes and sizes">
<img src={stackedPeaks} alt="A gradient of jagged color bands">