Here is an example of my data file and the error I am seeing:
[
{
"name": "Health Services Laboratories (HSL)",
"logo": "@logos/logo-health-services-labs.jpg"
},
{
"name": "The Doctors Laboratory (TDL)",
"logo": "@logos/logo-the-doctors-laboratory.png"
}
]
---
import clients from "@data/clients.json"
---
<div class="grid grid-cols-fill-300 gap-2 mt-10">
{ clients.map((client) =>
<div class="bg-white border-slate-100 p-4 py-10 flex flex-col justify-center items-center">
<Image src={ client.logo }
alt={ client.name }
class="max-h-20 w-full object-contain self-center"
widths={ [200, 300, 400, 600] }
/>
</div>
) }
</div>
</Container>
Astro detected an unhandled rejection. Here's the stack trace:
LocalImageUsedWrongly: Image's and getImage's src parameter must be an imported image or an URL, it cannot be a string filepath. Received @logos/logo-the-doctors-laboratory.png.