0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

Fix typo in MissingImageDimension error message (#11842)

* Fix typo in `MissingImageDimension` error message

* Update .changeset/perfect-socks-dress.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
This commit is contained in:
Stephan de Vries 2024-08-26 15:28:16 +02:00 committed by GitHub
parent 497324c4e8
commit 1ffaae04cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes a typo in the `MissingImageDimension` error message

View file

@ -541,7 +541,7 @@ export const MissingImageDimension = {
message: (missingDimension: 'width' | 'height' | 'both', imageURL: string) =>
`Missing ${
missingDimension === 'both' ? 'width and height attributes' : `${missingDimension} attribute`
} for ${imageURL}. When using remote images, both dimensions are required unless in order to avoid CLS.`,
} for ${imageURL}. When using remote images, both dimensions are required in order to avoid CLS.`,
hint: 'If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets). You can also use `inferSize={true}` for remote images to get the original dimensions.',
} satisfies ErrorData;
/**