I continually get the error LocalImagesUsedWrongly when I follow guide on images on the docs page. I've tried with and without import aliases, but in all cases, I still get the same error:
src/components/Host.astro
---
const {host} = Astro.props;
import {Image} from "astro:assets";
const {Content} = await host.render();
---
<div class="host">
<h2>{host.data.name}</h2>
<Image src={host.data.image} alt={host.data.name}/>
<Content/>
</div>
src/content/hosts/danielle.md
---
name: Danielle
image: "@images/hosts/danielle.jpg"
---
The image exists in /src/assets/images/hosts/danielle.jpg.
/tsconfig.json:
{
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@assets/*": ["assets/*"],
"@images/*": ["assets/images/*"],
"@config": ["config.ts"],
"@components/*": ["components/*"],
"@content/*": ["content/*"],
"@layouts/*": ["layouts/*"],
"@pages/*": ["pages/*"],
"@styles/*": ["styles/*"],
"@utils/*": ["utils/*"]
}
}
}