This error is related to the <Image /> component in Astro and its properties. The error suggests that you're using the formats property, which doesn't exist on the <Image /> component. Instead, you should be using the format property (singular).
To fix this error, you need to change formats to format in your <Image /> component. Here's how you can correct it:
<Image
inferSize={true}
src={yourImageSource}
alt="Your alt text"
format="avif"
fetchpriority="high"
loading="eager"
class="your-class-name"
/>
Note that the format property accepts a single string value, not an array of formats. If you want to use multiple formats, you should consider using the <Picture /> component instead, which does support the formats property as described in the Astro docs (https://docs.astro.build/en/reference/modules/astro-assets/#picture-properties).
If you specifically need to use multiple formats with the <Image /> component, you might need to create multiple <Image /> components, one for each format you want to use.
Remember to always check the Astro documentation on the Image component (https://docs.astro.build/en/reference/modules/astro-assets/#image-) for the most up-to-date information on available properties and their correct usage.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: