Skip to content

Commit

Permalink
Fix typo in MissingImageDimension error message (#11842)
Browse files Browse the repository at this point in the history
* Fix typo in `MissingImageDimension` error message

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

---------

Co-authored-by: Emanuele Stoppa <[email protected]>
  • Loading branch information
stephan281094 and ematipico authored Aug 26, 2024
1 parent 497324c commit 1ffaae0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/perfect-socks-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a typo in the `MissingImageDimension` error message
2 changes: 1 addition & 1 deletion packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down

0 comments on commit 1ffaae0

Please sign in to comment.