Skip to content

Commit fc52681

Browse files
authored
Fix weird periods in NoMatchingRenderer error (#7110)
* Fix weird periods in `NoMatchingRenderer` error * Add changeset
1 parent 4104286 commit fc52681

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/ninety-sheep-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fix formatting in the `NoMatchingRenderer` error message.

packages/astro/src/core/errors/errors-data.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ export const AstroErrorData = {
167167
168168
${
169169
validRenderersCount > 0
170-
? `There ${plural ? 'are.' : 'is.'} ${validRenderersCount} renderer${
171-
plural ? 's.' : ''
170+
? `There ${plural ? 'are' : 'is'} ${validRenderersCount} renderer${
171+
plural ? 's' : ''
172172
} configured in your \`astro.config.mjs\` file,
173-
but ${plural ? 'none were.' : 'it was not.'} able to server-side render \`${componentName}\`.`
173+
but ${plural ? 'none were' : 'it was not'} able to server-side render \`${componentName}\`.`
174174
: `No valid renderer was found ${
175175
componentExtension
176176
? `for the \`.${componentExtension}\` file extension.`

0 commit comments

Comments
 (0)