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:
parent
497324c4e8
commit
1ffaae04cf
2 changed files with 6 additions and 1 deletions
5
.changeset/perfect-socks-dress.md
Normal file
5
.changeset/perfect-socks-dress.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes a typo in the `MissingImageDimension` error message
|
|
@ -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;
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue