diff --git a/.changeset/ninety-sheep-knock.md b/.changeset/ninety-sheep-knock.md new file mode 100644 index 000000000..a8b9a0dbf --- /dev/null +++ b/.changeset/ninety-sheep-knock.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix formatting in the `NoMatchingRenderer` error message. diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index ab38d2793..9bde01ca9 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -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.`