Skip to content

Commit

Permalink
Fix weird periods in NoMatchingRenderer error (#7110)
Browse files Browse the repository at this point in the history
* Fix weird periods in `NoMatchingRenderer` error

* Add changeset
  • Loading branch information
delucis authored May 17, 2023
1 parent 4104286 commit fc52681
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-sheep-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix formatting in the `NoMatchingRenderer` error message.
6 changes: 3 additions & 3 deletions packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
Expand Down

0 comments on commit fc52681

Please sign in to comment.