From 30d0fcedbb67c635572170c0df04efc4ef31c26d Mon Sep 17 00:00:00 2001 From: Rafid Muhymin Wafi Date: Tue, 29 Mar 2022 04:05:40 +0600 Subject: [PATCH] Corrected package name in warning message (#2911) * fixed typo in warning message * added missing type --- packages/astro/src/core/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index a675252f1..0f79df501 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -140,7 +140,7 @@ export async function validateConfig(userConfig: any, root: string): Promise r.replace('@astrojs/renderer-', '')); - const rendererImports = rendererKeywords.map((r: string) => ` import ${r} from '@astrojs/${r}';`).join('\n'); + const rendererImports = rendererKeywords.map((r: string) => ` import ${r} from '@astrojs/${r === "solid" ? "solid-js" : r}';`).join("\n"); const rendererIntegrations = rendererKeywords.map((r: string) => ` ${r}(),`).join('\n'); console.error(''); console.error(colors.dim(' // astro.config.js'));