diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts index fb3bd3451..36f5a0c56 100644 --- a/packages/astro/src/compiler/codegen/index.ts +++ b/packages/astro/src/compiler/codegen/index.ts @@ -716,7 +716,7 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile buffers[curr] += `h(${componentName}, ${attributes ? generateAttributes(attributes) : 'null'}`; return; } else if (!state.declarations.has(componentName) && !componentInfo && !isCustomElementTag(componentName)) { - throw new Error(`Unable to render "${componentName}" because it is undefined\n ${state.filename}`) + throw new Error(`Unable to render "${componentName}" because it is undefined\n ${state.filename}`); } if (componentName === 'Markdown') { const { $scope } = attributes ?? {}; diff --git a/packages/astro/test/astro-components.test.js b/packages/astro/test/astro-components.test.js index aa5630584..0d9bd7ac0 100644 --- a/packages/astro/test/astro-components.test.js +++ b/packages/astro/test/astro-components.test.js @@ -26,7 +26,6 @@ Components('Astro components are able to render framework components', async ({ assert.not.type($svelte, 'undefined', 'Renders Svelte component'); }); - Components('Allows Components defined in frontmatter', async ({ runtime }) => { const result = await runtime.load('/frontmatter-component'); const html = result.contents;