Fix weird periods in NoMatchingRenderer error (#7110)

* Fix weird periods in `NoMatchingRenderer` error

* Add changeset
This commit is contained in:
Chris Swithinbank 2023-05-17 17:30:47 +02:00 committed by GitHub
parent 410428672e
commit fc52681ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix formatting in the `NoMatchingRenderer` error message.

View file

@ -167,10 +167,10 @@ export const AstroErrorData = {
${
validRenderersCount > 0
? `There ${plural ? 'are.' : 'is.'} ${validRenderersCount} renderer${
plural ? 's.' : ''
? `There ${plural ? 'are' : 'is'} ${validRenderersCount} renderer${
plural ? 's' : ''
} configured in your \`astro.config.mjs\` file,
but ${plural ? 'none were.' : 'it was not.'} able to server-side render \`${componentName}\`.`
but ${plural ? 'none were' : 'it was not'} able to server-side render \`${componentName}\`.`
: `No valid renderer was found ${
componentExtension
? `for the \`.${componentExtension}\` file extension.`